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
Event triggered when a dominion is deleted.
This event is experimental and may change in future versions.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionDominionDeleteEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion) Constructs a new DominionDeleteEvent. -
Method Summary
Modifier and TypeMethodDescription@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.Methods inherited from class cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelledMethods inherited from class cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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 eventdominion- 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
Gets the dominion to be deleted.- Returns:
- the dominion to be deleted
-