Skip to content

Commit

Permalink
Update command permission check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaisa-Supergene committed Aug 7, 2024
1 parent a929ab7 commit 4184893
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CommandResolver(
return false
}

if (annotation.permissions.any { sender.hasPermission(it) }) {
if (annotation.permissions.isEmpty() || annotation.permissions.any { sender.hasPermission(it) } || sender.isOp) {
runCatching {
instance.execute(sender, args)
}.onFailure { exception: Throwable ->
Expand Down

0 comments on commit 4184893

Please sign in to comment.