From 173bed6a1079704eee2941cd7d69c913204b64c5 Mon Sep 17 00:00:00 2001 From: whitebelyash Date: Sun, 8 Feb 2026 22:04:09 +0400 Subject: [PATCH] Add inspector mode shortcut command (/coi|/gusi) --- .../java/net/coreprotect/command/CommandHandler.java | 8 ++++++++ src/main/resources/plugin.yml | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/main/java/net/coreprotect/command/CommandHandler.java b/src/main/java/net/coreprotect/command/CommandHandler.java index 50f9ba8..baf05c4 100755 --- a/src/main/java/net/coreprotect/command/CommandHandler.java +++ b/src/main/java/net/coreprotect/command/CommandHandler.java @@ -25,6 +25,14 @@ public class CommandHandler implements CommandExecutor { public boolean onCommand(CommandSender user, Command command, String commandLabel, String[] argumentArray) { String commandName = command.getName().toLowerCase(Locale.ROOT); + // Griefus begin + if (commandName.equals("coi") || commandName.equals("gusi")) { + boolean permission = user.hasPermission("coreprotect.inspect"); + InspectCommand.runCommand(user, permission, argumentArray); + return true; + } + // Griefus end + if (commandName.equals("core") || commandName.equals("coreprotect") || commandName.equals("co") || commandName.equals("griefus") || commandName.equals("gus")) { int resultc = argumentArray.length; if (resultc > -1) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 7816f51..dd41707 100755 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -35,6 +35,16 @@ commands: permission: coreprotect.griefus permission-message: §3Griefus §f- You do not have permission to do that. usage: / + coi: + description: Inspector mode shortcut + permission: coreprotect.inspect + permission-message: §3Griefus §f- You do not have permission to do that. + usage: / + gusi: + description: Inspector mode shortcut + permission: coreprotect.inspect + permission-message: §3Griefus §f- You do not have permission to do that. + usage: / permissions: coreprotect.*: description: Gives access to all Griefus actions and commands