diff --git a/src/main/java/ac/grim/grimac/commands/GrimLog.java b/src/main/java/ac/grim/grimac/commands/GrimLog.java index 7deef66549..dd4adbd6f1 100644 --- a/src/main/java/ac/grim/grimac/commands/GrimLog.java +++ b/src/main/java/ac/grim/grimac/commands/GrimLog.java @@ -9,7 +9,6 @@ import co.aikar.commands.annotation.CommandPermission; import co.aikar.commands.annotation.Subcommand; import io.github.retrooper.packetevents.util.FoliaCompatUtil; -import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; import java.net.HttpURLConnection; @@ -18,8 +17,10 @@ @CommandAlias("grim|grimac") public class GrimLog extends BaseCommand { + @Subcommand("log|logs") @CommandPermission("grim.log") + @CommandAlias("gl") public void onLog(CommandSender sender, int flagId) { StringBuilder builder = SuperDebug.getFlag(flagId); diff --git a/src/main/java/ac/grim/grimac/commands/GrimLogShortcut.java b/src/main/java/ac/grim/grimac/commands/GrimLogShortcut.java deleted file mode 100644 index e161ce2614..0000000000 --- a/src/main/java/ac/grim/grimac/commands/GrimLogShortcut.java +++ /dev/null @@ -1,16 +0,0 @@ -package ac.grim.grimac.commands; - -import co.aikar.commands.BaseCommand; -import co.aikar.commands.annotation.CommandAlias; -import co.aikar.commands.annotation.CommandPermission; -import co.aikar.commands.annotation.Default; -import org.bukkit.command.CommandSender; - -@CommandAlias("gl") -public class GrimLogShortcut extends BaseCommand { - @Default - @CommandPermission("grim.log") - public void grimLog(CommandSender sender, int flagId) { // TODO: There has to be a better way to make an alias - new GrimLog().onLog(sender, flagId); - } -} diff --git a/src/main/java/ac/grim/grimac/manager/init/start/CommandRegister.java b/src/main/java/ac/grim/grimac/manager/init/start/CommandRegister.java index 81678a08eb..e3ff52511d 100644 --- a/src/main/java/ac/grim/grimac/manager/init/start/CommandRegister.java +++ b/src/main/java/ac/grim/grimac/manager/init/start/CommandRegister.java @@ -22,7 +22,6 @@ public void start() { commandManager.registerCommand(new GrimSpectate()); commandManager.registerCommand(new GrimStopSpectating()); commandManager.registerCommand(new GrimLog()); - commandManager.registerCommand(new GrimLogShortcut()); commandManager.registerCommand(new GrimVerbose()); } }