mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	@@ -126,6 +126,7 @@ public class DebugExec extends SubCommand {
 | 
			
		||||
        scope.put("Settings", new Settings());
 | 
			
		||||
        scope.put("StringMan", new StringMan());
 | 
			
		||||
        scope.put("MathMan", new MathMan());
 | 
			
		||||
        scope.put("FlagManager", new FlagManager());
 | 
			
		||||
        
 | 
			
		||||
        // Classes
 | 
			
		||||
        scope.put("Location", Location.class);
 | 
			
		||||
 
 | 
			
		||||
@@ -87,14 +87,13 @@ public abstract class EventUtil {
 | 
			
		||||
                if (!plot.hasOwner()) {
 | 
			
		||||
                    return Permissions.hasPermission(pp, C.PERMISSION_ADMIN_INTERACT_UNOWNED.s(), notifyPerms);
 | 
			
		||||
                }
 | 
			
		||||
                Flag use = FlagManager.getPlotFlag(plot, "break");
 | 
			
		||||
                Flag use = FlagManager.getPlotFlag(plot, "use");
 | 
			
		||||
                if (use != null) {
 | 
			
		||||
                    HashSet<PlotBlock> value = (HashSet<PlotBlock>) use.getValue();
 | 
			
		||||
                    if (value.contains(PlotBlock.EVERYTHING) || value.contains(block.getPlotBlock())) {
 | 
			
		||||
                        return true;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                
 | 
			
		||||
                Flag destroy = FlagManager.getPlotFlag(plot, "break");
 | 
			
		||||
                if (destroy != null) {
 | 
			
		||||
                    HashSet<PlotBlock> value = (HashSet<PlotBlock>) destroy.getValue();
 | 
			
		||||
 
 | 
			
		||||
@@ -492,7 +492,6 @@ public class MainUtil {
 | 
			
		||||
 | 
			
		||||
    public static boolean teleportPlayer(final PlotPlayer player, final Location from, final Plot plot) {
 | 
			
		||||
        final Plot bot = MainUtil.getBottomPlot(plot);
 | 
			
		||||
 | 
			
		||||
        boolean result = EventUtil.manager.callTeleport(player, from, plot);
 | 
			
		||||
 | 
			
		||||
        if (result) {
 | 
			
		||||
 
 | 
			
		||||
@@ -242,11 +242,11 @@ public class StringMan {
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    public static boolean isEqual(String a, String b) {
 | 
			
		||||
        return (a == b || (a.length() == b.length() && a.hashCode() == b.hashCode() && a.equals(b)));
 | 
			
		||||
        return (a == b || (a != null && b != null && a.length() == b.length() && a.hashCode() == b.hashCode() && a.equals(b)));
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    public static boolean isEqualIgnoreCase(String a, String b) {
 | 
			
		||||
        return (a == b || (a.length() == b.length() && a.equalsIgnoreCase(b)));
 | 
			
		||||
        return (a == b || (a != null && b != null && a.length() == b.length() && a.equalsIgnoreCase(b)));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String repeat(String s, int n) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user