File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/core Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ internal class EntryPoint : EssBase() {
3737 internal fun hasPermission (
3838 player : ServerPlayerEntity ,
3939 node : String ,
40- opLevel : Int = 4
40+ opLevel : Int
4141 ): Boolean = if (permissionsInstalled) {
4242 PermissionsAPI .hasPermission(player.name.string, node)
4343 } else {
44- player.server.opPermissionLevel >= opLevel
44+ player.hasPermissionLevel( opLevel)
4545 }
4646 }
4747
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ internal object JavaCompatibility {
77 fun hasPermission (
88 player : ServerPlayerEntity ,
99 node : String ,
10- opLevel : Int = 4
10+ opLevel : Int
1111 ): Boolean = if (EntryPoint .permissionsInstalled) {
1212 PermissionsAPI .hasPermission(player.name.string, node)
1313 } else {
14- player.server.opPermissionLevel >= opLevel
14+ player.hasPermissionLevel( opLevel)
1515 }
1616}
You can’t perform that action at this time.
0 commit comments