Skip to content

Commit dcd13aa

Browse files
committed
Incorrect permissions checking fixed.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 29642e5 commit dcd13aa

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/chat

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/chat/EntryPoint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class EntryPoint : EssBase() {
5252
if (permissionsInstalled) {
5353
PermissionsAPI.hasPermission(player.name.string, node)
5454
} else {
55-
player.server.opPermissionLevel >= opLevel
55+
player.hasPermissionLevel(opLevel)
5656
}
5757
}
5858

0 commit comments

Comments
 (0)