command without arguments now acts as toggle subcommand

This commit is contained in:
2022-12-31 14:43:44 +01:00
parent 7da6ff0ac9
commit 78504ee097
6 changed files with 48 additions and 44 deletions
@@ -8,7 +8,9 @@ public enum PreventStabbyPermission {
COMMAND_TOGGLE("command.toggle"),
COMMAND_TOGGLE_OTHERS("command.toggle.others"),
COMMAND_RELOAD("command.reload"),
COMMAND_GLOBAL_TOGGLE("command.toggle.global");
COMMAND_GLOBAL_TOGGLE("command.toggle.global"),
COMMAND_HELP("command.help");
private final String permission;
PreventStabbyPermission(String permission) {