From 46fd0439a551b4727253166da76237db486e5a41 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 6 Nov 2022 19:17:21 +0000 Subject: [PATCH] Fixed dynamic command reg --- .../java/com/willfp/eco/core/command/impl/PluginCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/command/impl/PluginCommand.java b/eco-api/src/main/java/com/willfp/eco/core/command/impl/PluginCommand.java index 8790cf8c..0c6b3174 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/command/impl/PluginCommand.java +++ b/eco-api/src/main/java/com/willfp/eco/core/command/impl/PluginCommand.java @@ -61,7 +61,7 @@ public abstract class PluginCommand extends HandledCommand implements CommandExe CommandMap commandMap = getCommandMap(); - commandMap.register(this.getName(), new DelegatedBukkitCommand(this)); + commandMap.register(this.getPlugin().getName().toLowerCase(), new DelegatedBukkitCommand(this)); Eco.get().syncCommands(); }