Rename enchantment list command and add aliases
- The old name of the command to list all registered commands on the server was "listAvailable". This name provides no information about what it actually lists, making it hard to remember or use. The command now has 3 names: "listAvailableEnchantments", "listEnchantments", and "enchantments". These commands should be easier to remember and use.
This commit is contained in:
parent
0a9ead5ffb
commit
62f316314f
@ -98,7 +98,10 @@ public class CommandHandler implements CommandExecutor
|
||||
return true;
|
||||
}
|
||||
|
||||
if (args.length == 1 && args[0].equalsIgnoreCase("listAvailable"))
|
||||
if (args.length == 1 &&
|
||||
(args[0].equalsIgnoreCase("listAvailableEnchantments") ||
|
||||
args[0].equalsIgnoreCase("listEnchantments") ||
|
||||
args[0].equalsIgnoreCase("enchantments")))
|
||||
{
|
||||
listAvailableEnchantments();
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user