Forgot about unlinking

This commit is contained in:
boy0001 2014-10-15 19:53:28 +11:00
parent 0961671eaf
commit e7d44d5343
4 changed files with 10 additions and 2 deletions

View File

@ -62,5 +62,7 @@ public abstract class PlotManager {
public abstract boolean removeRoadSouthEast(PlotWorld plotworld, Plot plot); public abstract boolean removeRoadSouthEast(PlotWorld plotworld, Plot plot);
public abstract boolean finishPlotMerge(World world, PlotWorld plotworld, ArrayList<PlotId> plotIds); public abstract boolean finishPlotMerge(World world, PlotWorld plotworld, ArrayList<PlotId> plotIds);
public abstract boolean finishPlotUnlink(World world, PlotWorld plotworld, ArrayList<PlotId> plotIds);
} }

View File

@ -43,8 +43,7 @@ public class SetBlockFast {
int distance = Bukkit.getViewDistance() + 1; int distance = Bukkit.getViewDistance() + 1;
for (int cx = -distance; cx < distance; cx++) { for (int cx = -distance; cx < distance; cx++) {
for (int cz = -distance; cz < distance; cz++) { for (int cz = -distance; cz < distance; cz++) {
player.getWorld().refreshChunk(player.getLocation().getChunk().getX() + cx, player.getLocation().getChunk().getZ() player.getWorld().refreshChunk(player.getLocation().getChunk().getX() + cx, player.getLocation().getChunk().getZ() + cz);
+ cz);
} }
} }
} }

View File

@ -109,6 +109,8 @@ public class Unlink extends SubCommand {
catch (Exception e) { catch (Exception e) {
} }
manager.finishPlotUnlink(world, plotworld, ids);
PlayerFunctions.sendMessage(plr, "&6Plots unlinked successfully!"); PlayerFunctions.sendMessage(plr, "&6Plots unlinked successfully!");
return true; return true;

View File

@ -597,4 +597,9 @@ public class DefaultPlotManager extends PlotManager {
} }
return true; return true;
} }
@Override
public boolean finishPlotUnlink(World world, PlotWorld plotworld, ArrayList<PlotId> plotIds) {
return true;
}
} }