mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +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 {
|
||||
for (RegisteredListener listener : listeners) {
|
||||
listener.callEvent(event);
|
||||
if (event.isCancelled()) break;
|
||||
}
|
||||
} catch (EventException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
Loading…
Reference in New Issue
Block a user