add static getHandlerList method as required by bukkit

This commit is contained in:
langua 2024-04-20 08:50:54 +02:00
parent feb36b03a2
commit 1595b18a00
No known key found for this signature in database
GPG Key ID: 586ECCC6BC54FDAE
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,10 @@ public class CoreProtectBlockBreakPreLogEvent extends Event implements Cancellab
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public boolean isCancelled() {
return cancelled;

View File

@ -25,6 +25,10 @@ public class CoreProtectBlockPlacePreLogEvent extends Event implements Cancellab
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public boolean isCancelled() {
return cancelled;