From 5e5e46eef09576d30aaaa3f5be6ffc06c71c2d14 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 28 Dec 2014 11:14:47 +1100 Subject: [PATCH] . --- .../plot/listeners/PlayerEvents.java | 4 ++-- .../plot/util/PlotHelper.java | 18 +----------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java index e8b273185..3390505f9 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/listeners/PlayerEvents.java @@ -281,7 +281,7 @@ import java.util.Set; } } - @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) + @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public static void onBlockPistonExtend(final BlockPistonExtendEvent e) { if (isInPlot(e.getBlock().getLocation())) { for (final Block block : e.getBlocks()) { @@ -338,7 +338,7 @@ import java.util.Set; */ } - @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) + @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public static void onBlockPistonRetract(final BlockPistonRetractEvent e) { final Block b = e.getRetractLocation().getBlock(); if (isPlotWorld(b.getLocation()) && (e.getBlock().getType() == Material.PISTON_STICKY_BASE)) { diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java index b0423135b..9963aa1fc 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/PlotHelper.java @@ -692,17 +692,6 @@ import java.util.UUID; state = h; manager.clearPlot(world, plot, isDelete); - - if (canSetFast) { - final Plugin plugin = PlotMain.getMain(); - Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { - @Override - public void run() { - PlotHelper.setBiome(world, plot, Biome.FOREST); - refreshPlotChunks(world, plot); - } - }, 90L); - } } /** @@ -734,12 +723,7 @@ import java.util.UUID; clear(world, plot, isDelete); removeSign(world, plot); final Plugin plugin = PlotMain.getMain(); - Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { - @Override - public void run() { - PlayerFunctions.sendMessage(requester, C.CLEARING_DONE.s().replaceAll("%time%", "" + ((System.currentTimeMillis() - start)))); - } - }, 90L); + PlayerFunctions.sendMessage(requester, C.CLEARING_DONE.s().replaceAll("%time%", "" + ((System.currentTimeMillis() - start)))); }