Fix bug with checking perms

This commit is contained in:
redtea committed 2024-03-25 22:03:58 +03:00
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)
}