diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-21 20:28:02 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-21 20:28:02 +0000 |
commit | 2b61299288d0ae25d50d24d5cf74b5bcc0192230 (patch) | |
tree | 53b82eb1bc52af1ab84f624a2072c5f37d686139 | |
parent | dcd92097e987ccd4030fa11135cf5147d6b6f7ad (diff) | |
download | bukkit-2b61299288d0ae25d50d24d5cf74b5bcc0192230.tar bukkit-2b61299288d0ae25d50d24d5cf74b5bcc0192230.tar.gz bukkit-2b61299288d0ae25d50d24d5cf74b5bcc0192230.tar.lz bukkit-2b61299288d0ae25d50d24d5cf74b5bcc0192230.tar.xz bukkit-2b61299288d0ae25d50d24d5cf74b5bcc0192230.zip |
Revert "SPIGOT-264: Remove PlayerPortalEvent's handler list"
This reverts commit dcd92097e987ccd4030fa11135cf5147d6b6f7ad.
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerPortalEvent.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java b/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java index ceb709e3..93752f79 100644 --- a/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java @@ -3,6 +3,7 @@ package org.bukkit.event.player; import org.bukkit.Location; import org.bukkit.TravelAgent; import org.bukkit.entity.Player; +import org.bukkit.event.HandlerList; /** * Called when a player is about to teleport because it is in contact with a @@ -11,6 +12,7 @@ import org.bukkit.entity.Player; * For other entities see {@link org.bukkit.event.entity.EntityPortalEvent} */ public class PlayerPortalEvent extends PlayerTeleportEvent { + private static final HandlerList handlers = new HandlerList(); protected boolean useTravelAgent = true; protected TravelAgent travelAgent; @@ -73,4 +75,13 @@ public class PlayerPortalEvent extends PlayerTeleportEvent { public void setPortalTravelAgent(TravelAgent travelAgent) { this.travelAgent = travelAgent; } -} + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } +}
\ No newline at end of file |