Class RtpWarmupCancelEvent
java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.rtp.event.RtpWarmupCancelEvent
public class RtpWarmupCancelEvent
extends org.bukkit.event.Event
Fired when an RTP warmup is abandoned.
Observe-only: the warmup is already gone, so this event cannot be cancelled.
See RtpWarmupCancelEvent.CancelReason for why it was abandoned.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhy a warmup was abandoned.Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionRtpWarmupCancelEvent(org.bukkit.entity.Player player, org.bukkit.World world, RtpWarmupCancelEvent.CancelReason reason) Creates a new RTP warmup cancel event. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.entity.PlayerReturns the player whose warmup was abandoned.Returns why the warmup was abandoned.org.bukkit.WorldgetWorld()Returns the world.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
RtpWarmupCancelEvent
public RtpWarmupCancelEvent(org.bukkit.entity.Player player, org.bukkit.World world, RtpWarmupCancelEvent.CancelReason reason) Creates a new RTP warmup cancel event.- Parameters:
player- the player whose warmup was abandonedworld- the worldreason- why the warmup was abandoned
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Returns the player whose warmup was abandoned.- Returns:
- the player
-
getWorld
public org.bukkit.World getWorld()Returns the world.- Returns:
- the world
-
getReason
Returns why the warmup was abandoned.- Returns:
- the cancel reason
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-