From 33cb41f56b6574bb97b121257ae45d1a3aa2b859 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 12 Jan 2020 15:01:51 +0100 Subject: [PATCH] Fixed misleading comments for onJoin/onLeave commands --- .../world/bentobox/bskyblock/Settings.java | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/bskyblock/Settings.java b/src/main/java/world/bentobox/bskyblock/Settings.java index f4d43d3..2f06d9d 100644 --- a/src/main/java/world/bentobox/bskyblock/Settings.java +++ b/src/main/java/world/bentobox/bskyblock/Settings.java @@ -340,11 +340,29 @@ public class Settings implements WorldSettings { private boolean pasteMissingIslands = false; // Commands - @ConfigComment("List of commands to run when a player joins.") + @ConfigComment("List of commands to run when a player joins an island or creates one.") + @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("") + @ConfigComment("Available placeholders for the commands are the following:") + @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\"") @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.") + @ConfigComment("List of commands to run when a player leaves an island or resets his island.") + @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("") + @ConfigComment("Available placeholders for the commands are the following:") + @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\"") @ConfigEntry(path = "island.commands.on-leave", since = "1.8.0") private List onLeaveCommands = new ArrayList<>();