类 DominionSetTpLocationEvent

所有已实现的接口:
org.bukkit.event.Cancellable

@Experimental public class DominionSetTpLocationEvent extends DominionModifyEvent
Event triggered when a teleport location is set for a Dominion in the Dominion system.
  • 构造器详细资料

    • DominionSetTpLocationEvent

      public DominionSetTpLocationEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull org.bukkit.Location newTpLocation)
      Constructs a new DominionSetTpLocationEvent.
      参数:
      operator - the command sender who initiated the event
      dominion - the dominion for which the teleport location is being set
      newTpLocation - the new teleport location
  • 方法详细资料

    • getOldTpLocation

      @NotNull public @NotNull org.bukkit.Location getOldTpLocation()
      Gets the old teleport location.
      返回:
      the old teleport location, or null if it was not set
    • getNewTpLocation

      @NotNull public @NotNull org.bukkit.Location getNewTpLocation()
      Gets the new teleport location.
      返回:
      the new teleport location
    • setNewTpLocation

      public void setNewTpLocation(@NotNull @NotNull org.bukkit.Location newTpLocation)
      Sets the new teleport location.
      参数:
      newTpLocation - the new teleport location to set