类 DominionRenameEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
cn.lunadeer.dominion.events.dominion.modify.DominionRenameEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when a Dominion is renamed in the Dominion system.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionRenameEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull String newName) Constructs a new DominionRenameEvent. -
方法概要
修饰符和类型方法说明@NotNull StringGets the new name of the dominion.@NotNull StringGets the old name of the dominion.voidsetNewName(@NotNull String newName) Sets the new name for the dominion.从类继承的方法 cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
getDominion, setDominion从类继承的方法 cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled从类继承的方法 cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers从类继承的方法 org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
构造器详细资料
-
DominionRenameEvent
public DominionRenameEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull String newName) Constructs a new DominionRenameEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion to be renamednewName- the new name for the dominion
-
-
方法详细资料
-
getNewName
Gets the new name of the dominion.- 返回:
- the new name
-
getOldName
Gets the old name of the dominion.- 返回:
- the old name
-
setNewName
Sets the new name for the dominion.- 参数:
newName- the new name to set
-