diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-11 18:23:27 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-11 18:25:08 +0000 |
commit | dcd92097e987ccd4030fa11135cf5147d6b6f7ad (patch) | |
tree | 2fa04e2543d3b2516da830e5901ae4ab1e9c187d | |
parent | 085a38e53f782482288aef2f727c8ee358065bdf (diff) | |
download | bukkit-dcd92097e987ccd4030fa11135cf5147d6b6f7ad.tar bukkit-dcd92097e987ccd4030fa11135cf5147d6b6f7ad.tar.gz bukkit-dcd92097e987ccd4030fa11135cf5147d6b6f7ad.tar.lz bukkit-dcd92097e987ccd4030fa11135cf5147d6b6f7ad.tar.xz bukkit-dcd92097e987ccd4030fa11135cf5147d6b6f7ad.zip |
SPIGOT-264: Remove PlayerPortalEvent's handler list
So it can chain PlayerTeleportEvent at the same time
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerPortalEvent.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java b/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java index 93752f79..ceb709e3 100644 --- a/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerPortalEvent.java @@ -3,7 +3,6 @@ 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 @@ -12,7 +11,6 @@ import org.bukkit.event.HandlerList; * 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; @@ -75,13 +73,4 @@ 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 +} |