diff --git a/server/src/main/java/dev/plex/command/impl/NotesCMD.java b/server/src/main/java/dev/plex/command/impl/NotesCMD.java index ca0eb88..ab36610 100644 --- a/server/src/main/java/dev/plex/command/impl/NotesCMD.java +++ b/server/src/main/java/dev/plex/command/impl/NotesCMD.java @@ -124,11 +124,11 @@ public class NotesCMD extends PlexCommand private void readNotes(@NotNull CommandSender sender, PlexPlayer plexPlayer, List notes) { - AtomicReference noteList = new AtomicReference<>(Component.text("Player notes for: " + plexPlayer.getName()).color(NamedTextColor.GREEN)); + AtomicReference noteList = new AtomicReference<>(messageComponent("notesHeader", plexPlayer.getName())); for (Note note : notes) { - Component noteLine = mmString("" + note.getId() + " - Written by: " + DataUtils.getPlayer(note.getWrittenBy()).getName() + " on " + TimeUtils.useTimezone(note.getTimestamp())); - noteLine = noteLine.append(mmString("# " + note.getNote())); + Component noteLine = messageComponent("notePrefix", note.getId(), DataUtils.getPlayer(note.getWrittenBy()).getName(), TimeUtils.useTimezone(note.getTimestamp())); + noteLine = noteLine.append(messageComponent("noteLine", note.getNote())); noteList.set(noteList.get().append(Component.newline())); noteList.set(noteList.get().append(noteLine)); } @@ -152,4 +152,4 @@ public class NotesCMD extends PlexCommand } return Collections.emptyList(); } -} \ No newline at end of file +}