类 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
Event triggered when a dominion is deleted.
This event is experimental and may change in future versions.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionDeleteEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion) Constructs a new DominionDeleteEvent. -
方法概要
修饰符和类型方法说明@NotNull DominionDTOGets the dominion to be deleted.booleanisForce()Checks if the deletion is forced.booleanChecks if the economy check is skipped during deletion.voidsetForce(boolean force) Sets whether the deletion is forced.voidsetSkipEconomy(boolean skipEconomy) Sets whether to skip the economy check during deletion.从类继承的方法 cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled从类继承的方法 cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers从类继承的方法 org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
构造器详细资料
-
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 eventdominion- 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
Gets the dominion to be deleted.- 返回:
- the dominion to be deleted
-