From 657c1a1d5416afc5284e168ed4547abc60b81d7c Mon Sep 17 00:00:00 2001 From: boy0001 Date: Thu, 19 Mar 2015 23:07:57 +1100 Subject: [PATCH] Fixes #211 --- .../plot/generator/ClassicPlotManager.java | 1 + .../main/java/com/intellectualcrafters/plot/util/MainUtil.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/ClassicPlotManager.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/ClassicPlotManager.java index 56dec6691..a15bad233 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/ClassicPlotManager.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/ClassicPlotManager.java @@ -309,6 +309,7 @@ public abstract class ClassicPlotManager extends SquarePlotManager { if (!claim.equals(unclaim)) { setWall(plotworld, plot.id, new PlotBlock[] { unclaim }); } + MainUtil.removeSign(plot); return true; } diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java index 98b3a6dda..c765a8af0 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/MainUtil.java @@ -337,6 +337,9 @@ public class MainUtil { final String world = p.world; final PlotManager manager = PlotSquared.getPlotManager(world); final PlotWorld plotworld = PlotSquared.getPlotWorld(world); + if (!plotworld.ALLOW_SIGNS) { + return; + } final Location loc = manager.getSignLoc(plotworld, p); BlockManager.setBlocks(world, new int[] { loc.getX() }, new int[] { loc.getY() }, new int[] { loc.getZ() }, new int[] { 0 }, new byte[] { 0 }); }