diff options
author | Petr Ilin <hevav@hevav.dev> | 2023-01-23 22:55:42 +0300 |
---|---|---|
committer | Petr Ilin <hevav@hevav.dev> | 2023-01-23 22:55:42 +0300 |
commit | 5709af5c0ade33aff357650fd4e57f79c4844649 (patch) | |
tree | ebb3444d471fa3a5922cabec9735fd693dab2611 /src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java | |
parent | 5493d0efb8cc31fe630a5b02e84dcd0378810b40 (diff) | |
download | LimboAuth-5709af5c0ade33aff357650fd4e57f79c4844649.tar.gz LimboAuth-5709af5c0ade33aff357650fd4e57f79c4844649.tar.bz2 LimboAuth-5709af5c0ade33aff357650fd4e57f79c4844649.zip |
Ability to deny/allow commands without permission plugins
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java')
-rw-r--r-- | src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java b/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java index 9d34d82..fff7120 100644 --- a/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java +++ b/src/main/java/net/elytrium/limboauth/command/ForceUnregisterCommand.java @@ -88,6 +88,7 @@ public class ForceUnregisterCommand implements SimpleCommand { @Override public boolean hasPermission(SimpleCommand.Invocation invocation) { - return invocation.source().hasPermission("limboauth.admin.forceunregister"); + return Settings.IMP.MAIN.COMMAND_PERMISSION_STATE.FORCE_UNREGISTER + .hasPermission(invocation.source(), "limboauth.admin.forceunregister"); } } |