Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Break on event cancel
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren