Package net.ess3.api.events
Class PrivateMessagePreSendEvent
java.lang.Object
org.bukkit.event.Event
net.ess3.api.events.PrivateMessagePreSendEvent
- All Implemented Interfaces:
Cancellable
Called just before a private message is sent to its recipient
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPrivateMessagePreSendEvent
(IMessageRecipient sender, IMessageRecipient recipient, String message) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
boolean
void
setCancelled
(boolean b) void
setMessage
(String message) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PrivateMessagePreSendEvent
public PrivateMessagePreSendEvent(IMessageRecipient sender, IMessageRecipient recipient, String message)
-
-
Method Details
-
getHandlerList
-
getSender
-
getRecipient
-
getMessage
-
setMessage
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean b) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlers
- Specified by:
getHandlers
in classEvent
-