diff --git a/src/main/java/world/bentobox/bentobox/api/commands/admin/DefaultAdminCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/admin/DefaultAdminCommand.java index 80bc7db57..dbcd126de 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/admin/DefaultAdminCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/admin/DefaultAdminCommand.java @@ -32,6 +32,7 @@ public abstract class DefaultAdminCommand extends CompositeCommand { */ protected DefaultAdminCommand(GameModeAddon addon) { // Register command with alias from config. + // The first command listed is the "label" and the others are aliases. super(addon, addon.getWorldSettings().getAdminCommandAliases().split(" ")[0], addon.getWorldSettings().getAdminCommandAliases().split(" ")); diff --git a/src/main/java/world/bentobox/bentobox/api/commands/island/DefaultPlayerCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/island/DefaultPlayerCommand.java index 64cf3f632..cff645212 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/island/DefaultPlayerCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/island/DefaultPlayerCommand.java @@ -23,6 +23,7 @@ public abstract class DefaultPlayerCommand extends CompositeCommand { */ protected DefaultPlayerCommand(GameModeAddon addon) { // Register command with alias from config. + // The first command listed is the "label" and the others are aliases. super(addon, addon.getWorldSettings().getPlayerCommandAliases().split(" ")[0], addon.getWorldSettings().getPlayerCommandAliases().split(" ")); diff --git a/src/main/java/world/bentobox/bentobox/api/configuration/WorldSettings.java b/src/main/java/world/bentobox/bentobox/api/configuration/WorldSettings.java index 100ff2606..cd1e81d35 100644 --- a/src/main/java/world/bentobox/bentobox/api/configuration/WorldSettings.java +++ b/src/main/java/world/bentobox/bentobox/api/configuration/WorldSettings.java @@ -549,6 +549,7 @@ public interface WorldSettings extends ConfigObject { * Returns all aliases for main admin command. * It is assumed that all aliases are split with whitespace between them. * String cannot be empty. + * The first command listed is the "label" in the API, and after that are the aliases * Default value: {@code getFriendlyName() + "admin"} (to retain backward compatibility). * @return String value * @since 1.13.0 @@ -563,6 +564,7 @@ public interface WorldSettings extends ConfigObject { * Returns all aliases for main player command. * It is assumed that all aliases are split with whitespace between them. * String cannot be empty. + * The first command listed is the "label" in the API, and after that are the aliases * Default value: {@code getFriendlyName()} (to retain backward compatibility). * @return String value * @since 1.13.0