Skip to content

Commit

Permalink
Check of op bypass #35
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraculixxT committed Dec 8, 2024
1 parent 0d7e8bc commit d39488a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ class MarkerCommand : MarkerCommandInstance {
}

private fun CommandSourceStack.getData(): PlayerData {
return PlayerData(player?.uuid, textName, Permissions.require(manageOthersMarkers).test(this), Permissions.require(manageOthersSets).test(this))
val isOP = player?.permissionLevel?.let { it >= 3 } == true
return PlayerData(player?.uuid, textName, isOP || Permissions.require(manageOthersMarkers).test(this), isOP || Permissions.require(manageOthersSets).test(this))
}

private fun CommandSourceStack.getWorldKeys(): List<String> {
Expand Down

0 comments on commit d39488a

Please sign in to comment.