diff --git a/src/main/java/net/coreprotect/command/CommandHandler.java b/src/main/java/net/coreprotect/command/CommandHandler.java index 36b769b..203e618 100755 --- a/src/main/java/net/coreprotect/command/CommandHandler.java +++ b/src/main/java/net/coreprotect/command/CommandHandler.java @@ -7,13 +7,10 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; -import net.coreprotect.config.ConfigHandler; import net.coreprotect.language.Phrase; -import net.coreprotect.thread.NetworkHandler; import net.coreprotect.utility.Chat; import net.coreprotect.utility.Color; import net.coreprotect.utility.Extensions; -import net.coreprotect.utility.VersionUtils; public class CommandHandler implements CommandExecutor { private static CommandHandler instance; @@ -30,7 +27,7 @@ public class CommandHandler implements CommandExecutor { public boolean onCommand(CommandSender user, Command command, String commandLabel, String[] argumentArray) { String commandName = command.getName().toLowerCase(Locale.ROOT); - if (commandName.equals("core") || commandName.equals("coreprotect") || commandName.equals("co")) { + if (commandName.equals("core") || commandName.equals("coreprotect") || commandName.equals("co") || commandName.equals("griefus") || commandName.equals("gus")) { int resultc = argumentArray.length; if (resultc > -1) { String corecommand = "help"; diff --git a/src/main/java/net/coreprotect/services/PluginInitializationService.java b/src/main/java/net/coreprotect/services/PluginInitializationService.java index e0bc4df..231d8fb 100644 --- a/src/main/java/net/coreprotect/services/PluginInitializationService.java +++ b/src/main/java/net/coreprotect/services/PluginInitializationService.java @@ -90,6 +90,10 @@ public class PluginInitializationService { plugin.getCommand("core").setTabCompleter(new TabHandler()); plugin.getCommand("co").setExecutor(CommandHandler.getInstance()); plugin.getCommand("co").setTabCompleter(new TabHandler()); + plugin.getCommand("griefus").setExecutor(CommandHandler.getInstance()); + plugin.getCommand("griefus").setTabCompleter(new TabHandler()); + plugin.getCommand("gus").setExecutor(CommandHandler.getInstance()); + plugin.getCommand("gus").setTabCompleter(new TabHandler()); } /** diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index a878ca5..7816f51 100755 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -27,12 +27,12 @@ commands: usage: / gus: description: Utilize the plugin - permission: coreprotect.coreprotect + permission: coreprotect.gus permission-message: §3Griefus §f- You do not have permission to do that. usage: / griefus: description: Utilize the plugin - permission: coreprotect.coreprotect + permission: coreprotect.griefus permission-message: §3Griefus §f- You do not have permission to do that. usage: / permissions: @@ -72,6 +72,12 @@ permissions: coreprotect.coreprotect: description: Has permission to access the Griefus /coreprotect command default: false + coreprotect.gus: + description: Has permission to access the Griefus /gus command + default: true + coreprotect.griefus: + description: Has permission to access the Griefus /griefus command + default: false coreprotect.lookup: description: Has permission to use the lookup command default: op