Use an alias instead of two separate commands in plugin.yml

This commit is contained in:
Andreas Troelsen 2018-08-10 23:14:02 +02:00
parent 170dc2b122
commit 1fc6c5b8b9
2 changed files with 2 additions and 10 deletions

View File

@ -124,9 +124,7 @@ public class MobArena extends JavaPlugin
}
private void setupCommandHandler() {
CommandHandler handler = new CommandHandler(this);
getCommand("ma").setExecutor(handler);
getCommand("mobarena").setExecutor(handler);
getCommand("ma").setExecutor(new CommandHandler(this));
}
private void registerConfigurationSerializers() {

View File

@ -11,13 +11,7 @@ commands:
Find the error in your server log, copy it into
http://pastebin.com, and then paste the link
in the IRC or on the forums.
mobarena:
description: Base command for MobArena
usage: |
YOU HAVE AN ERROR!
Find the error in your server log, copy it into
http://pastebin.com, and then paste the link
in the IRC or on the forums.
aliases: [mobarena]
permissions:
mobarena.use.join:
description: Join command