Skip to content

Commit

Permalink
Incorrect permissions checking fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
MairwunNx committed Feb 7, 2020
1 parent f0fc5a2 commit bf7e6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/mairwunnx/randomteleport/EntryPoint.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ class EntryPoint {
internal fun hasPermission(
player: ServerPlayerEntity,
opLevel: Int
): Boolean = player.server.opPermissionLevel >= opLevel
): Boolean = player.hasPermissionLevel(opLevel)
}
}

0 comments on commit bf7e6af

Please sign in to comment.