Package me.fami6xx.rpuniverse.core.api
Class PlayerRemovedFromJobEvent
java.lang.Object
org.bukkit.event.Event
me.fami6xx.rpuniverse.core.api.PlayerRemovedFromJobEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PlayerRemovedFromJobEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event that is called when a player is removed from a job.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerRemovedFromJobEvent(Job job, org.bukkit.entity.Player player)Constructs a new PlayerRemovedFromJobEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListGets the static handler list for this event.@NotNull org.bukkit.event.HandlerListGets the list of handlers for this event.getJob()Gets the job from which the player was removed.org.bukkit.entity.PlayerGets the player who was removed from the job.booleanChecks if the event is cancelled.voidsetCancelled(boolean b)Sets the cancellation state of the event.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerRemovedFromJobEvent
Constructs a new PlayerRemovedFromJobEvent.- Parameters:
job- the job from which the player was removedplayer- the player who was removed from the job
-
-
Method Details
-
isCancelled
public boolean isCancelled()Checks if the event is cancelled.- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable- Returns:
- true if the event is cancelled, false otherwise
-
setCancelled
public void setCancelled(boolean b)Sets the cancellation state of the event.- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
b- true to cancel the event, false to uncancel
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Gets the list of handlers for this event.- Specified by:
getHandlersin classorg.bukkit.event.Event- Returns:
- the list of handlers
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Gets the static handler list for this event.- Returns:
- the static handler list
-
getJob
Gets the job from which the player was removed.- Returns:
- the job
-
getPlayer
public org.bukkit.entity.Player getPlayer()Gets the player who was removed from the job.- Returns:
- the player
-