only fire PlayerEnterCombatEvent if there are registered listeners for it

This commit is contained in:
2023-06-22 16:02:34 +02:00
parent 8ae6e9212c
commit 4590b1d532
2 changed files with 10 additions and 2 deletions
@@ -45,4 +45,9 @@ public class PlayerEnterCombatEvent extends Event implements Cancellable {
public HandlerList getHandlers() {
return HANDLERS;
}
@NotNull
public static HandlerList getHandlerList() {
return HANDLERS;
}
}