mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Break on event cancel
This commit is contained in:
parent
685a3c015f
commit
dfb1195242
@ -92,6 +92,7 @@ public class FreeBuildRegion extends BukkitMaskManager {
|
|||||||
try {
|
try {
|
||||||
for (RegisteredListener listener : listeners) {
|
for (RegisteredListener listener : listeners) {
|
||||||
listener.callEvent(event);
|
listener.callEvent(event);
|
||||||
|
if (event.isCancelled()) break;
|
||||||
}
|
}
|
||||||
} catch (EventException e) {
|
} catch (EventException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user