mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
.
This commit is contained in:
parent
e1ad203716
commit
7ce300c47b
@ -254,17 +254,6 @@ public abstract class ClassicPlotManager extends SquarePlotManager {
|
|||||||
return true;
|
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
|
@Override
|
||||||
public String[] getPlotComponents(final PlotWorld plotworld, final PlotId plotid) {
|
public String[] getPlotComponents(final PlotWorld plotworld, final PlotId plotid) {
|
||||||
return new String[] { "floor", "wall", "border" };
|
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;
|
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);
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user