mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:01:58 +01:00
SPIGOT-264: Remove PlayerPortalEvent's handler list
So it can chain PlayerTeleportEvent at the same time By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
f27a00c74d
commit
9acbabc8bd
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user