From e7d44d5343c3d65aca8b2bbdc6f8665413272d26 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 15 Oct 2014 19:53:28 +1100 Subject: [PATCH] Forgot about unlinking --- .../src/com/intellectualcrafters/plot/PlotManager.java | 2 ++ .../src/com/intellectualcrafters/plot/SetBlockFast.java | 3 +-- .../src/com/intellectualcrafters/plot/commands/Unlink.java | 2 ++ .../plot/generator/DefaultPlotManager.java | 5 +++++ 4 files changed, 10 insertions(+), 2 deletions(-) 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; + } }