mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-08-10 08:15:27 +02:00
Fix for explosion
This commit is contained in:
@@ -564,7 +564,8 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
|||||||
iter.remove();
|
iter.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
return;
|
||||||
|
}
|
||||||
Plot plot = area.getOwnedPlot(loc);
|
Plot plot = area.getOwnedPlot(loc);
|
||||||
if (plot != null) {
|
if (plot != null) {
|
||||||
if (FlagManager.isPlotFlagTrue(plot, "explosion")) {
|
if (FlagManager.isPlotFlagTrue(plot, "explosion")) {
|
||||||
@@ -594,12 +595,11 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
|
|||||||
iter.remove();
|
iter.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
public void onWorldChanged(final PlayerChangedWorldEvent event) {
|
public void onWorldChanged(final PlayerChangedWorldEvent event) {
|
||||||
|
Reference in New Issue
Block a user