Fix bug with checking perms
This commit is contained in:
1 parent
c7fbf80420
commit
bb68292af0
2 files changed
+2
-2
No files matched your search
@@ -35,7 +35,7 @@ interface Command {
|
||||
|
||||
|
||||
fun hasNotPermission(sender: CommandSender): Boolean =
|
||||
context.permission != "" && !sender.hasPermission(context.permission).also {
|
||||
context.permission != "" && (!sender.hasPermission(context.permission)).also {
|
||||
if(it) MessagesService.byTag("#no-perm")(sender)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user