Package cn.lunadeer.dominion.events
Class PlayerMoveInDominionEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.PlayerMoveInDominionEvent
玩家进入领地事件,当玩家进入一个领地时触发。
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerMoveInDominionEvent
(@NotNull org.bukkit.entity.Player player, @NotNull DominionDTO dominion) -
Method Summary
Modifier and TypeMethodDescription@NotNull DominionDTO
获取玩家进入的领地@NotNull org.bukkit.entity.Player
获取玩家Methods inherited from class cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerMoveInDominionEvent
public PlayerMoveInDominionEvent(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull DominionDTO dominion)
-
-
Method Details
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer()获取玩家- Returns:
- 玩家
-
getDominion
获取玩家进入的领地- Returns:
- 领地
-