Class LocalChatEvent

All Implemented Interfaces:
Cancellable

public class LocalChatEvent extends ChatEvent implements Cancellable
Fired when a player uses local chat
  • Constructor Details

    • LocalChatEvent

      public LocalChatEvent(boolean async, Player player, String format, String message, Set<Player> recipients, long radius)
  • 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

      public static HandlerList getHandlerList()
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event