Class LocalChatEvent
java.lang.Object
org.bukkit.event.Event
net.essentialsx.api.v2.events.chat.ChatEvent
net.essentialsx.api.v2.events.chat.LocalChatEvent
- All Implemented Interfaces:
Cancellable
Fired when a player uses local chat
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
long
Returns local chat radius used to calculate recipients of this message.Methods inherited from class net.essentialsx.api.v2.events.chat.ChatEvent
getChatType, getFormat, getMessage, getPlayer, getRecipients, isCancelled, setCancelled, setFormat, setMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
LocalChatEvent
-
-
Method Details
-
getRadius
public long getRadius()Returns local chat radius used to calculate recipients of this message.This is not a radius between players: for that use
ChatEvent.getRecipients()
and calculate distance to player who sent the message (ChatEvent.getPlayer()
).- Returns:
- Non-squared local chat radius.
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-