From d6b4b2525ed08d6b4b409375bc70e37d92376707 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 12 Jan 2020 15:26:06 +0100 Subject: [PATCH] Improved the onLeaveCommands comment Thanks to some feedback from @wellnesscookie. --- src/main/java/world/bentobox/bskyblock/Settings.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/world/bentobox/bskyblock/Settings.java b/src/main/java/world/bentobox/bskyblock/Settings.java index 2f06d9d..347fa30 100644 --- a/src/main/java/world/bentobox/bskyblock/Settings.java +++ b/src/main/java/world/bentobox/bskyblock/Settings.java @@ -353,7 +353,7 @@ public class Settings implements WorldSettings { @ConfigEntry(path = "island.commands.on-join", since = "1.8.0") private List onJoinCommands = new ArrayList<>(); - @ConfigComment("List of commands to run when a player leaves an island or resets his island.") + @ConfigComment("List of commands to run when a player leaves an island, resets his island or gets kicked from it.") @ConfigComment("These commands are run by the console, unless otherwise stated using the [SUDO] prefix,") @ConfigComment("in which case they are executed by the player.") @ConfigComment("") @@ -361,8 +361,10 @@ public class Settings implements WorldSettings { @ConfigComment(" * [name]: name of the player") @ConfigComment("") @ConfigComment("Here are some examples of valid commands to execute:") - @ConfigComment(" * \"[SUDO] bbox version\"") - @ConfigComment(" * \"bsbadmin deaths set [player] 0\"") + @ConfigComment(" * '[SUDO] bbox version'") + @ConfigComment(" * 'bsbadmin deaths set [player] 0'") + @ConfigComment("") + @ConfigComment("Note that player-executed commands might not work, as these commands can be run with said player being offline.") @ConfigEntry(path = "island.commands.on-leave", since = "1.8.0") private List onLeaveCommands = new ArrayList<>();