From 1fc6c5b8b9103da98a965a1962dc6fcecad534c3 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Fri, 10 Aug 2018 23:14:02 +0200 Subject: [PATCH] Use an alias instead of two separate commands in plugin.yml --- src/main/java/com/garbagemule/MobArena/MobArena.java | 4 +--- src/main/resources/plugin.yml | 8 +------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/garbagemule/MobArena/MobArena.java b/src/main/java/com/garbagemule/MobArena/MobArena.java index e6f7df8..39d07b7 100644 --- a/src/main/java/com/garbagemule/MobArena/MobArena.java +++ b/src/main/java/com/garbagemule/MobArena/MobArena.java @@ -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() { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index c1dc0e5..23c4d5b 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -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