mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	fix: account for false permissions when checking range (#4014)
This commit is contained in:
		@@ -176,6 +176,10 @@ public class BukkitPlayer extends PlotPlayer<Player> {
 | 
			
		||||
            final Set<PermissionAttachmentInfo> effective = player.getEffectivePermissions();
 | 
			
		||||
            if (!effective.isEmpty()) {
 | 
			
		||||
                for (PermissionAttachmentInfo attach : effective) {
 | 
			
		||||
                    // Ignore all "false" permissions
 | 
			
		||||
                    if (!attach.getValue()) {
 | 
			
		||||
                        continue;
 | 
			
		||||
                    }
 | 
			
		||||
                    String permStr = attach.getPermission();
 | 
			
		||||
                    if (permStr.startsWith(stubPlus)) {
 | 
			
		||||
                        hasAny = true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user