Permissions overhaul

This commit is contained in:
boy0001 2015-01-13 03:45:50 +11:00
parent f119f6996d
commit f2b5f1d224
24 changed files with 114 additions and 103 deletions

View file

@ -284,7 +284,7 @@ import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
* @return true if player has the permission
*/
public static boolean hasPermission(final Player player, final String perm) {
if ((player == null) || player.isOp()) {
if ((player == null) || player.isOp() || player.hasPermission(ADMIN_PERMISSION)) {
return true;
}
if (player.hasPermission(perm)) {