Package net.essentialsx.api.v2.events
Class UserMailEvent
java.lang.Object
org.bukkit.event.Event
net.essentialsx.api.v2.events.UserMailEvent
- All Implemented Interfaces:
Cancellable
Called when mail is sent to a
IUser
by another player or the console.
Note: This event has no guarantee of the thread it is fired on, please use Event.isAsynchronous()
} to see if this event is off the main Bukkit thread.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Gets the underlyingMailMessage
for this mail.Gets the recipient of this mail.boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
UserMailEvent
-
-
Method Details
-
getRecipient
Gets the recipient of this mail.- Returns:
- the recipient.
-
getMessage
Gets the underlyingMailMessage
for this mail.- Returns:
- the message.
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-