Package cn.lunadeer.dominion.events
Class PlayerMoveOutDominionEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.PlayerMoveOutDominionEvent
Event triggered when a player moves out of a dominion.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerMoveOutDominionEvent(@NotNull org.bukkit.entity.Player player, @Nullable DominionDTO dominion) Constructs a new PlayerMoveOutDominionEvent. -
Method Summary
Modifier and TypeMethodDescription@Nullable DominionDTOGets the dominion the player moved out of.@NotNull org.bukkit.entity.PlayerGets the player who moved out.Methods inherited from class cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerMoveOutDominionEvent
public PlayerMoveOutDominionEvent(@NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable DominionDTO dominion) Constructs a new PlayerMoveOutDominionEvent.- Parameters:
player- the player who moved outdominion- the dominion the player moved out of
-
-
Method Details
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer()Gets the player who moved out.- Returns:
- the player
-
getDominion
Gets the dominion the player moved out of.Might be null if this dominion called because of dominion deletion.
- Returns:
- the dominion
-