From bf7e6affc0536acc4e268af6261387a38f721f0e Mon Sep 17 00:00:00 2001 From: "Pavel Erokhin (MairwunNx)" Date: Fri, 7 Feb 2020 21:44:23 +0300 Subject: [PATCH] Incorrect permissions checking fixed. --- src/main/kotlin/com/mairwunnx/randomteleport/EntryPoint.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/mairwunnx/randomteleport/EntryPoint.kt b/src/main/kotlin/com/mairwunnx/randomteleport/EntryPoint.kt index f587e61..2e65972 100644 --- a/src/main/kotlin/com/mairwunnx/randomteleport/EntryPoint.kt +++ b/src/main/kotlin/com/mairwunnx/randomteleport/EntryPoint.kt @@ -39,6 +39,6 @@ class EntryPoint { internal fun hasPermission( player: ServerPlayerEntity, opLevel: Int - ): Boolean = player.server.opPermissionLevel >= opLevel + ): Boolean = player.hasPermissionLevel(opLevel) } }