Fix error registering disabled commands

This commit is contained in:
William committed 2023-03-25 17:24:34 +00:00
1 parent 29cf3f9ffc
commit 68c20d9e9a
2 files changed
+5 -3

No files matched your search

@@ -140,7 +140,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
.map(type -> {
final Command command = type.getCommand();
if (settings.isCommandDisabled(command)) {
new BukkitCommand(new DisabledCommand(this), this).register();
new BukkitCommand(new DisabledCommand(command.getName(), this), this).register();
return null;
} else {
new BukkitCommand(command, this).register();