mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	.
This commit is contained in:
		@@ -254,17 +254,6 @@ public abstract class ClassicPlotManager extends SquarePlotManager {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public boolean unclaimPlot(final PlotWorld plotworld, final Plot plot) {
 | 
			
		||||
        final PlotBlock unclaim = ((ClassicPlotWorld) plotworld).WALL_BLOCK;
 | 
			
		||||
        final PlotBlock claim = ((ClassicPlotWorld) plotworld).CLAIMED_WALL_BLOCK;
 | 
			
		||||
        if (unclaim.id != 0 || !claim.equals(unclaim)) {
 | 
			
		||||
            setWall(plotworld, plot.id, new PlotBlock[] { unclaim });
 | 
			
		||||
        }
 | 
			
		||||
        MainUtil.removeSign(plot);
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public String[] getPlotComponents(final PlotWorld plotworld, final PlotId plotid) {
 | 
			
		||||
        return new String[] { "floor", "wall", "border" };
 | 
			
		||||
 
 | 
			
		||||
@@ -180,17 +180,4 @@ public abstract class SquarePlotManager extends GridPlotManager {
 | 
			
		||||
        final int z = dpw.ROAD_OFFSET_Z + (pz * (dpw.ROAD_WIDTH + dpw.PLOT_WIDTH)) - dpw.PLOT_WIDTH - ((int) Math.floor(dpw.ROAD_WIDTH / 2)) - 1;
 | 
			
		||||
        return new Location(plotworld.worldname, x, 1, z);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Set a plot biome
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public boolean setBiome(final Plot plot, final String biome) {
 | 
			
		||||
        final int bottomX = MainUtil.getPlotBottomLoc(plot.world, plot.id).getX() - 1;
 | 
			
		||||
        final int topX = MainUtil.getPlotTopLoc(plot.world, plot.id).getX();
 | 
			
		||||
        final int bottomZ = MainUtil.getPlotBottomLoc(plot.world, plot.id).getZ() - 1;
 | 
			
		||||
        final int topZ = MainUtil.getPlotTopLoc(plot.world, plot.id).getZ();
 | 
			
		||||
        MainUtil.setBiome(plot.world, bottomX, bottomZ, topX, topZ, biome);
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user