mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fix for explosion
This commit is contained in:
parent
0dc672bcd5
commit
2b3fb7b4d0
@ -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 New Issue
Block a user