mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix for explosion
This commit is contained in:
parent
0dc672bcd5
commit
2b3fb7b4d0
1 changed files with 28 additions and 28 deletions
|
@ -564,7 +564,8 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
|||
iter.remove();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
Plot plot = area.getOwnedPlot(loc);
|
||||
if (plot != null) {
|
||||
if (FlagManager.isPlotFlagTrue(plot, "explosion")) {
|
||||
|
@ -594,12 +595,11 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
|||
iter.remove();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onWorldChanged(final PlayerChangedWorldEvent event) {
|
||||
|
|
Loading…
Reference in a new issue