Class DominionSetTpLocationEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class DominionSetTpLocationEvent extends DominionModifyEvent
Event triggered when a teleport location is set for a Dominion in the Dominion system.
  • Constructor Details

    • DominionSetTpLocationEvent

      public DominionSetTpLocationEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull org.bukkit.Location newTpLocation)
      Constructs a new DominionSetTpLocationEvent.
      Parameters:
      operator - the command sender who initiated the event
      dominion - the dominion for which the teleport location is being set
      newTpLocation - the new teleport location
  • Method Details

    • getOldTpLocation

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

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

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