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
ConstructorDescriptionSpectatorTeleportToPlayerEvent
(@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 TypeMethodDescriptiongetArena()
Get the arenastatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Get the spectatororg.bukkit.entity.Player
Get the target playerboolean
Check if it is cancelledvoid
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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
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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-