mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixes #772
This commit is contained in:
		@@ -384,7 +384,15 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
 | 
			
		||||
            } else {
 | 
			
		||||
                pattern = RegExUtil.compiledPatterns.get(s);
 | 
			
		||||
            }
 | 
			
		||||
            if (pattern.matcher(msg).matches()) {
 | 
			
		||||
            if (pattern.matcher(msg).matches()) {
 | 
			
		||||
                MainUtil.sendMessage(pp, C.COMMAND_BLOCKED);
 | 
			
		||||
                String perm;
 | 
			
		||||
                if (plot.isAdded(pp.getUUID())) {
 | 
			
		||||
                    perm = "plots.admin.command.blocked-cmds.shared";
 | 
			
		||||
                } else {
 | 
			
		||||
                    perm = "plots.admin.command.blocked-cmds.other";
 | 
			
		||||
                }
 | 
			
		||||
                if (!Permissions.hasPermission(pp, perm)) {
 | 
			
		||||
                    event.setCancelled(true);
 | 
			
		||||
                }
 | 
			
		||||
                return;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user