mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
.
This commit is contained in:
parent
a742dd7192
commit
5e5e46eef0
@ -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) {
|
public static void onBlockPistonExtend(final BlockPistonExtendEvent e) {
|
||||||
if (isInPlot(e.getBlock().getLocation())) {
|
if (isInPlot(e.getBlock().getLocation())) {
|
||||||
for (final Block block : e.getBlocks()) {
|
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) {
|
public static void onBlockPistonRetract(final BlockPistonRetractEvent e) {
|
||||||
final Block b = e.getRetractLocation().getBlock();
|
final Block b = e.getRetractLocation().getBlock();
|
||||||
if (isPlotWorld(b.getLocation()) && (e.getBlock().getType() == Material.PISTON_STICKY_BASE)) {
|
if (isPlotWorld(b.getLocation()) && (e.getBlock().getType() == Material.PISTON_STICKY_BASE)) {
|
||||||
|
@ -692,17 +692,6 @@ import java.util.UUID;
|
|||||||
state = h;
|
state = h;
|
||||||
|
|
||||||
manager.clearPlot(world, plot, isDelete);
|
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);
|
clear(world, plot, isDelete);
|
||||||
removeSign(world, plot);
|
removeSign(world, plot);
|
||||||
final Plugin plugin = PlotMain.getMain();
|
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))));
|
PlayerFunctions.sendMessage(requester, C.CLEARING_DONE.s().replaceAll("%time%", "" + ((System.currentTimeMillis() - start))));
|
||||||
}
|
|
||||||
}, 90L);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user