Class SpectatorTeleportToPlayerEvent

java.lang.Object
org.bukkit.event.Event
com.andrei1058.bedwars.api.events.spectator.SpectatorTeleportToPlayerEvent

public class SpectatorTeleportToPlayerEvent extends org.bukkit.event.Event
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpectatorTeleportToPlayerEvent(@NotNull org.bukkit.entity.Player spectator, @NotNull org.bukkit.entity.Player target, IArena arena)
    Called when the spectator uses the player selector to teleport and spectate the selected player.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the arena
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.entity.Player
    Get the spectator
    org.bukkit.entity.Player
    Get the target player
    boolean
    Check if it is cancelled
    void
    setCancelled(boolean cancelled)
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpectatorTeleportToPlayerEvent

      public SpectatorTeleportToPlayerEvent(@NotNull @NotNull org.bukkit.entity.Player spectator, @NotNull @NotNull org.bukkit.entity.Player target, IArena arena)
      Called when the spectator uses the player selector to teleport and spectate the selected player.
  • Method Details

    • getSpectator

      public org.bukkit.entity.Player getSpectator()
      Get the spectator
    • getArena

      public IArena getArena()
      Get the arena
    • getTarget

      public org.bukkit.entity.Player getTarget()
      Get the target player
    • isCancelled

      public boolean isCancelled()
      Check if it is cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()