类 DominionDeleteEvent

java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.dominion.DominionDeleteEvent
所有已实现的接口:
org.bukkit.event.Cancellable

@Experimental public class DominionDeleteEvent extends ResultEvent
Event triggered when a dominion is deleted. This event is experimental and may change in future versions.
  • 构造器详细资料

    • DominionDeleteEvent

      public DominionDeleteEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion)
      Constructs a new DominionDeleteEvent.
      参数:
      operator - the command sender who initiated the event
      dominion - the dominion to be deleted
  • 方法详细资料

    • isForce

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

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

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

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

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