Use an alias instead of two separate commands in plugin.yml
This commit is contained in:
@@ -124,9 +124,7 @@ public class MobArena extends JavaPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setupCommandHandler() {
|
private void setupCommandHandler() {
|
||||||
CommandHandler handler = new CommandHandler(this);
|
getCommand("ma").setExecutor(new CommandHandler(this));
|
||||||
getCommand("ma").setExecutor(handler);
|
|
||||||
getCommand("mobarena").setExecutor(handler);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerConfigurationSerializers() {
|
private void registerConfigurationSerializers() {
|
||||||
|
|||||||
@@ -11,13 +11,7 @@ commands:
|
|||||||
Find the error in your server log, copy it into
|
Find the error in your server log, copy it into
|
||||||
http://pastebin.com, and then paste the link
|
http://pastebin.com, and then paste the link
|
||||||
in the IRC or on the forums.
|
in the IRC or on the forums.
|
||||||
mobarena:
|
aliases: [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.
|
|
||||||
permissions:
|
permissions:
|
||||||
mobarena.use.join:
|
mobarena.use.join:
|
||||||
description: Join command
|
description: Join command
|
||||||
|
|||||||
Reference in New Issue
Block a user