This commit is contained in:
boy0001 2014-12-28 11:14:47 +11:00
parent a742dd7192
commit 5e5e46eef0
2 changed files with 3 additions and 19 deletions

View File

@ -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)) {

View File

@ -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);
}