Skip to content

Commit 9b6dded

Browse files
committed
Incorrect permissions checking fixed.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent fd31311 commit 9b6dded

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal class EntryPoint : EssBase() {
3939
PermissionsAPI.hasPermission(player.name.string, node)
4040
}
4141
} else {
42-
player?.server?.opPermissionLevel ?: 4 >= opLevel
42+
player?.hasPermissionLevel(opLevel) ?: true
4343
}
4444
}
4545

0 commit comments

Comments
 (0)