mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Plot merge limits
This commit is contained in:
		@@ -26,6 +26,7 @@ import java.util.UUID;
 | 
			
		||||
 | 
			
		||||
import com.intellectualcrafters.plot.PS;
 | 
			
		||||
import com.intellectualcrafters.plot.config.C;
 | 
			
		||||
import com.intellectualcrafters.plot.config.Settings;
 | 
			
		||||
import com.intellectualcrafters.plot.object.Location;
 | 
			
		||||
import com.intellectualcrafters.plot.object.Plot;
 | 
			
		||||
import com.intellectualcrafters.plot.object.PlotId;
 | 
			
		||||
@@ -142,6 +143,11 @@ public class Merge extends SubCommand {
 | 
			
		||||
            default:
 | 
			
		||||
                return false;
 | 
			
		||||
        }
 | 
			
		||||
        int size = selPlots.size();
 | 
			
		||||
        if (Permissions.hasPermissionRange(plr, "plots.merge", Settings.MAX_PLOTS) < size) {
 | 
			
		||||
            MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.merge." + size);
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
        final PlotId botId = selPlots.get(0);
 | 
			
		||||
        final PlotId topId = selPlots.get(selPlots.size() - 1);
 | 
			
		||||
        final PlotId bot1 = MainUtil.getBottomPlot(MainUtil.getPlot(world, botId)).id;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user