Class PlayerMoveOutDominionEvent

java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.PlayerMoveOutDominionEvent

public class PlayerMoveOutDominionEvent extends CallableEvent
Event triggered when a player moves out of a dominion.
  • Constructor Details

    • PlayerMoveOutDominionEvent

      public PlayerMoveOutDominionEvent(org.bukkit.entity.Player player, DominionDTO dominion)
      Constructs a new PlayerMoveOutDominionEvent.
      Parameters:
      player - the player who moved out
      dominion - 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

      @NotNull public @NotNull DominionDTO getDominion()
      Gets the dominion the player moved out of.
      Returns:
      the dominion