mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +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();
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user