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

@@ -8,8 +8,9 @@ import java.util.List;
public class DisabledCommand extends Command {
public DisabledCommand(@NotNull HuskHomes plugin) {
super("", List.of(), "", plugin);
public DisabledCommand(@NotNull String name, @NotNull HuskHomes plugin) {
super(name, List.of(), "", plugin);
setOperatorCommand(true);
}
@Override
@@ -17,4 +18,5 @@ public class DisabledCommand extends Command {
plugin.getLocales().getLocale("error_command_disabled")
.ifPresent(executor::sendMessage);
}
}