From 773f320cb6b940b4c5451b94f3e396909c89a42a Mon Sep 17 00:00:00 2001 From: Deauthorized <49701242+Deauthorized@users.noreply.github.com> Date: Thu, 2 May 2024 17:27:17 -0400 Subject: [PATCH] Update NotesCMD.java --- server/src/main/java/dev/plex/command/impl/NotesCMD.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +}