So I'm making a plugin that locks down a server at a level, and anyone who has a the permission "lockdown.bypass.#" with the # being larger than the lockdown level can join the server. The only problem, I'm stuck with: if (p.hasPermission("lockdown.bypass." + String.valueOf(i))); And I can't use a for loop to get the highest level permission the player has because I don't want the level to have a limit (the for loop would be like i < infinity xD) Any suggestions? EDIT: To make it more clear, if the lockdown is level 5, and someone has permission "lockdown.bypass.6" or "lockdown.bypass.102350" etc. they can join.