类 DominionSetMessageEvent
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.DominionSetMessageEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when a message is set for a Dominion in the Dominion system.
-
嵌套类概要
嵌套类修饰符和类型类说明static enumEnum representing the type of message being set.从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明DominionSetMessageEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, DominionSetMessageEvent.TYPE type, @NotNull String newMessage) Constructs a new DominionSetMessageEvent. -
方法概要
修饰符和类型方法说明@NotNull StringGets the new message content.@NotNull StringGets the old message content.getType()Gets the type of the message being set.voidsetNewMessage(@NotNull String newMessage) Sets the new message content.从类继承的方法 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
-
构造器详细资料
-
DominionSetMessageEvent
public DominionSetMessageEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull DominionSetMessageEvent.TYPE type, @NotNull @NotNull String newMessage) Constructs a new DominionSetMessageEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion for which the message is being settype- the type of the message being setnewMessage- the new message content
-
-
方法详细资料
-
getOldMessage
Gets the old message content.- 返回:
- the old message content
-
getType
Gets the type of the message being set.- 返回:
- the type of the message
-
getNewMessage
Gets the new message content.- 返回:
- the new message content
-
setNewMessage
Sets the new message content.Changes made in
EventPriorityHIGH or higherEventHandlerwill not take effect. (Default isEventPriority.NORMAL)- 参数:
newMessage- the new message content
-