diff --git a/PlotSquared/src/com/intellectualcrafters/plot/PlotManager.java b/PlotSquared/src/com/intellectualcrafters/plot/PlotManager.java index 02b0def96..aca004e43 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/PlotManager.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/PlotManager.java @@ -62,5 +62,7 @@ public abstract class PlotManager { public abstract boolean removeRoadSouthEast(PlotWorld plotworld, Plot plot); public abstract boolean finishPlotMerge(World world, PlotWorld plotworld, ArrayList plotIds); + + public abstract boolean finishPlotUnlink(World world, PlotWorld plotworld, ArrayList plotIds); } diff --git a/PlotSquared/src/com/intellectualcrafters/plot/SetBlockFast.java b/PlotSquared/src/com/intellectualcrafters/plot/SetBlockFast.java index 9ac39712d..525012444 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/SetBlockFast.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/SetBlockFast.java @@ -43,8 +43,7 @@ public class SetBlockFast { int distance = Bukkit.getViewDistance() + 1; for (int cx = -distance; cx < distance; cx++) { for (int cz = -distance; cz < distance; cz++) { - player.getWorld().refreshChunk(player.getLocation().getChunk().getX() + cx, player.getLocation().getChunk().getZ() - + cz); + player.getWorld().refreshChunk(player.getLocation().getChunk().getX() + cx, player.getLocation().getChunk().getZ() + cz); } } } diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Unlink.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Unlink.java index 5322e24c3..a7ec2abcc 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Unlink.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Unlink.java @@ -109,6 +109,8 @@ public class Unlink extends SubCommand { catch (Exception e) { } + + manager.finishPlotUnlink(world, plotworld, ids); PlayerFunctions.sendMessage(plr, "&6Plots unlinked successfully!"); return true; diff --git a/PlotSquared/src/com/intellectualcrafters/plot/generator/DefaultPlotManager.java b/PlotSquared/src/com/intellectualcrafters/plot/generator/DefaultPlotManager.java index 9ba86f1df..1c5c1b4c1 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/generator/DefaultPlotManager.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/generator/DefaultPlotManager.java @@ -597,4 +597,9 @@ public class DefaultPlotManager extends PlotManager { } return true; } + + @Override + public boolean finishPlotUnlink(World world, PlotWorld plotworld, ArrayList plotIds) { + return true; + } }