From fe41c6d1265192ebab032d658d8411f7ebd9f02f Mon Sep 17 00:00:00 2001 From: eleanordoesntcode <166862894+eleanordoesntcode@users.noreply.github.com> Date: Thu, 29 May 2025 19:13:18 +0200 Subject: [PATCH 1/7] now making 1.0.1! --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d29e639..46a2b80 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.retrohaven.mc.notes SimpleNotes - 1.0.0 + 1.0.1-SNAPSHOT A note system for moderators and admins, with the objective to be light on the system and on the codebase. From 8f953fbbcb9f1c1cd2403a4c025ed731056166e6 Mon Sep 17 00:00:00 2001 From: eleanordoesntcode <166862894+eleanordoesntcode@users.noreply.github.com> Date: Thu, 29 May 2025 19:20:15 +0200 Subject: [PATCH 2/7] =?UTF-8?q?use=20=C2=A7f=20instead=20of=20=C2=A7r=20fo?= =?UTF-8?q?r=20more=20compatibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/retrohaven/mc/notes/commands/NoteCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java b/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java index 029952b..4b16f31 100644 --- a/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java +++ b/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java @@ -410,16 +410,16 @@ public boolean NoteList(CommandSender sender, String[] args, boolean isListener) if (!RequestSubject.equals(sender.getName()) && (sender.hasPermission("simplenotes.see.others.notes") || sender.isOp()) && Objects.equals(line[1].substring(line[1].length() -4), "NOTE")) { shownCounter = shownCounter + 1; - sender.sendMessage("§8| " + String.join(" §8|§r ", line)); + sender.sendMessage("§8| " + String.join(" §8|§f ", line)); } else if (RequestSubject.equals(sender.getName()) && (sender.hasPermission("simplenotes.see.self.notes") || sender.isOp()) && Objects.equals(line[1].substring(line[1].length() -4), "NOTE") && (!isListener || config.getConfigBoolean("settings.notes.showonlogin.value"))) { shownCounter = shownCounter + 1; - sender.sendMessage("§8| " + String.join(" §8|§r ", line)); + sender.sendMessage("§8| " + String.join(" §8|§f ", line)); } else if (!RequestSubject.equals(sender.getName()) && (sender.hasPermission("simplenotes.see.others.warns") || sender.isOp()) && Objects.equals(line[1].substring(line[1].length() -4), "WARN")) { shownCounter = shownCounter + 1; - sender.sendMessage("§8| " + String.join(" §8|§r ", line)); + sender.sendMessage("§8| " + String.join(" §8|§f ", line)); } else if (RequestSubject.equals(sender.getName()) && (sender.hasPermission("simplenotes.see.self.warns") || sender.isOp()) && Objects.equals(line[1].substring(line[1].length() -4), "WARN") && (!isListener || config.getConfigBoolean("settings.warns.showonlogin.value"))) { shownCounter = shownCounter + 1; - sender.sendMessage("§8| " + String.join(" §8|§r ", line)); + sender.sendMessage("§8| " + String.join(" §8|§f ", line)); } } if (shownCounter == 0) { From 3a771c8b7e312a946d238f5f2950dd751ff1a059 Mon Sep 17 00:00:00 2001 From: eleanordoesntcode <166862894+eleanordoesntcode@users.noreply.github.com> Date: Thu, 29 May 2025 19:26:59 +0200 Subject: [PATCH 3/7] removing useless comment as we are not implementing this --- src/main/java/org/retrohaven/mc/notes/NotePlugin.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/retrohaven/mc/notes/NotePlugin.java b/src/main/java/org/retrohaven/mc/notes/NotePlugin.java index e11cbf4..7f2f343 100644 --- a/src/main/java/org/retrohaven/mc/notes/NotePlugin.java +++ b/src/main/java/org/retrohaven/mc/notes/NotePlugin.java @@ -43,9 +43,6 @@ public void onEnable() { @Override public void onDisable() { - // Save configuration - //config.save(); // Save the configuration file to disk. This should only be necessary if the configuration cam be modified during runtime. - log.info("[" + pluginName + "] Plugin unloaded!"); } From 5cf69b61f696bdf57a422dea5a336204738ffebc Mon Sep 17 00:00:00 2001 From: eleanordoesntcode <166862894+eleanordoesntcode@users.noreply.github.com> Date: Fri, 30 May 2025 12:11:46 +0200 Subject: [PATCH 4/7] fix permission error color code --- src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java b/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java index 4b16f31..2f5acb1 100644 --- a/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java +++ b/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java @@ -32,7 +32,7 @@ public class NoteCommand implements CommandExecutor { private final NotePlugin plugin; private final NoteConfig config; private final String errorColorCode = "§e"; - private final String permissionColorCode = "§3"; + private final String permissionColorCode = "§4"; public NoteCommand(NotePlugin plugin) { this.plugin = plugin; From 257ade426f0d5b9001edf2c4a9f7e87ad96a6e8a Mon Sep 17 00:00:00 2001 From: eleanordoesntcode <166862894+eleanordoesntcode@users.noreply.github.com> Date: Sat, 31 May 2025 17:04:05 +0200 Subject: [PATCH 5/7] fix "No notes or warns to show" being shown on login --- src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java b/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java index 2f5acb1..ba89b36 100644 --- a/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java +++ b/src/main/java/org/retrohaven/mc/notes/commands/NoteCommand.java @@ -422,7 +422,7 @@ public boolean NoteList(CommandSender sender, String[] args, boolean isListener) sender.sendMessage("§8| " + String.join(" §8|§f ", line)); } } - if (shownCounter == 0) { + if (shownCounter == 0 && !isListener) { sender.sendMessage("No notes or warns to show."); } return true; From 68bd0377a295949e7badbfb6dedb2a7d87af2608 Mon Sep 17 00:00:00 2001 From: eleanordoesntcode <166862894+eleanordoesntcode@users.noreply.github.com> Date: Sat, 31 May 2025 17:13:36 +0200 Subject: [PATCH 6/7] add section about permissions in README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 983918b..363c01c 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,17 @@ This command is disabled by default to make you look through the config (it's lo - This is the only case where the alias matter. You can use any of the warn* aliases for this. - /note remove [player] [id]: remove a note from a player (permission: simplenotes.removenotes) +## Permissions + +- simplenotes.addnotes: add notes/warns +- simplenotes.removenotes: remove notes/warns +- simplenotes.see.self.notes: see your own notes +- simplenotes.see.self.warns: see your own warns +- simplenotes.see.others.notes: see other people's notes +- simplenotes.see.others.warns: see other people's warns + +Permissions were tested with PermissionsEx, version 1.14. Notation with simplenotes.* and derivatives should work. + ## Compiling Clone the repository and run `mvn clean package`. The resulting jar should be in the `target` folder. \ No newline at end of file From 99d6cba9101af908aaa87daa0fbd2d5b3b8c8ec8 Mon Sep 17 00:00:00 2001 From: eleanordoesntcode <166862894+eleanordoesntcode@users.noreply.github.com> Date: Sun, 1 Jun 2025 16:59:55 +0200 Subject: [PATCH 7/7] 1.0.1! (already!) --- changelogs/1.0.1.md | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/1.0.1.md diff --git a/changelogs/1.0.1.md b/changelogs/1.0.1.md new file mode 100644 index 0000000..31e88a9 --- /dev/null +++ b/changelogs/1.0.1.md @@ -0,0 +1 @@ +Fix "No notes to show" being sent on login and some colouring. \ No newline at end of file diff --git a/pom.xml b/pom.xml index 46a2b80..de8ac6a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.retrohaven.mc.notes SimpleNotes - 1.0.1-SNAPSHOT + 1.0.1 A note system for moderators and admins, with the objective to be light on the system and on the codebase.