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
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 d29e639..de8ac6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.retrohaven.mc.notes
SimpleNotes
- 1.0.0
+ 1.0.1
A note system for moderators and admins, with the objective to be light on the system and on the codebase.
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!");
}
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..ba89b36 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;
@@ -410,19 +410,19 @@ 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) {
+ if (shownCounter == 0 && !isListener) {
sender.sendMessage("No notes or warns to show.");
}
return true;