mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixes #682
This commit is contained in:
		@@ -14,7 +14,7 @@ public class Permissions {
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    public static boolean hasPermission(final CommandCaller player, String perm) {
 | 
			
		||||
        if (player.hasPermission(perm)) {
 | 
			
		||||
        if (player.hasPermission(perm) || player.hasPermission(C.PERMISSION_ADMIN.s())) {
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
        perm = perm.toLowerCase().replaceAll("^[^a-z|0-9|\\.|_|-]", "");
 | 
			
		||||
@@ -42,6 +42,9 @@ public class Permissions {
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    public static int hasPermissionRange(final PlotPlayer player, final String stub, final int range) {
 | 
			
		||||
        if (player.hasPermission(C.PERMISSION_ADMIN.s())) {
 | 
			
		||||
            return Integer.MAX_VALUE;
 | 
			
		||||
        }
 | 
			
		||||
        final String[] nodes = stub.split("\\.");
 | 
			
		||||
        final StringBuilder n = new StringBuilder();
 | 
			
		||||
        for (int i = 0; i < (nodes.length - 1); i++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user