Skip to content

Commit 1b2e2c9

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/kotlin/com/mairwunnx/projectessentials/cooldown

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)