Class PlayerTeleportHubEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerTeleportHubEvent
All Implemented Interfaces:
Cancellable

public class PlayerTeleportHubEvent extends PlayerEvent implements Cancellable
This event gets called whenever the player gets teleported to the hub.
  • Constructor Details

    • PlayerTeleportHubEvent

      public PlayerTeleportHubEvent(Player player, boolean declineServerMovement)
  • Method Details

    • isDecliningServerMovement

      public boolean isDecliningServerMovement()
      In somce cases the player is only getting teleported to the hub position on the local server.

      This method defines whether the player should never be teleported to an other server or get kicked. Reason being, that the player might get teleported when he e.g. joins the server.

      Returns:
      true when the plugin forbids server movements
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()