mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Fix custom explosions not workin
This commit is contained in:
parent
331898c081
commit
3477132cf2
2 changed files with 6 additions and 2 deletions
|
@ -203,7 +203,7 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||
plotEntry(player, plot);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
|
||||
public static void PlayerMove(final PlayerMoveEvent event) {
|
||||
final Location f = BukkitUtil.getLocation(event.getFrom());
|
||||
final Location t = BukkitUtil.getLocation(event.getTo());
|
||||
|
@ -252,7 +252,8 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||
if (!plot.equals(getCurrentPlot(f))) {
|
||||
plotEntry(player, plot);
|
||||
}
|
||||
} else if (leftPlot(f, t)) {
|
||||
}
|
||||
else if (leftPlot(f, t)) {
|
||||
plot = getCurrentPlot(f);
|
||||
plotExit(player, plot);
|
||||
}
|
||||
|
|
|
@ -29,6 +29,9 @@ public class TNTListener implements Listener {
|
|||
@EventHandler
|
||||
public void onExplode(EntityExplodeEvent event) {
|
||||
Entity entity = event.getEntity();
|
||||
if (entity == null) {
|
||||
return;
|
||||
}
|
||||
World world = entity.getWorld();
|
||||
String worldname = world.getName();
|
||||
if (!PlotSquared.isPlotWorld(worldname)) {
|
||||
|
|
Loading…
Reference in a new issue