Class DominionDeleteEvent

java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.dominion.DominionDeleteEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class DominionDeleteEvent extends ResultEvent
Event triggered when a dominion is deleted. This event is experimental and may change in future versions.
  • Constructor Details

    • DominionDeleteEvent

      public DominionDeleteEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion)
      Constructs a new DominionDeleteEvent.
      Parameters:
      operator - the command sender who initiated the event
      dominion - the dominion to be deleted
  • Method Details

    • isForce

      public boolean isForce()
      Checks if the deletion is forced.
      Returns:
      true if the deletion is forced, false otherwise
    • setForce

      public void setForce(boolean force)
      Sets whether the deletion is forced.
      Parameters:
      force - true to force the deletion, false otherwise
    • setSkipEconomy

      public void setSkipEconomy(boolean skipEconomy)
      Sets whether to skip the economy check during deletion.
      Parameters:
      skipEconomy - true to skip the economy check, false otherwise
    • isSkipEconomy

      public boolean isSkipEconomy()
      Checks if the economy check is skipped during deletion.
      Returns:
      true if the economy check is skipped, false otherwise
    • getDominion

      @NotNull public @NotNull DominionDTO getDominion()
      Gets the dominion to be deleted.
      Returns:
      the dominion to be deleted