diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/player/PlayerKickEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerKickEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerKickEvent.java b/src/main/java/org/bukkit/event/player/PlayerKickEvent.java index 97559f3e..47155616 100644 --- a/src/main/java/org/bukkit/event/player/PlayerKickEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerKickEvent.java @@ -2,12 +2,14 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; /** * Called when a player gets kicked from the server */ @SuppressWarnings("serial") public class PlayerKickEvent extends PlayerEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); private String leaveMessage; private String kickReason; private Boolean cancel; @@ -62,4 +64,13 @@ public class PlayerKickEvent extends PlayerEvent implements Cancellable { public void setLeaveMessage(String leaveMessage) { this.leaveMessage = leaveMessage; } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } } |