Class PlayerChatEvent

java.lang.Object
com.velocitypowered.api.event.player.PlayerChatEvent
All Implemented Interfaces:
ResultedEvent<PlayerChatEvent.ChatResult>

@AwaitingEvent public final class PlayerChatEvent extends Object implements ResultedEvent<PlayerChatEvent.ChatResult>
This event is fired when a player types in a chat message. Velocity will wait on this event to finish firing before forwarding it to the server, if the result allows it.
  • Constructor Details

    • PlayerChatEvent

      public PlayerChatEvent(Player player, String message)
      Constructs a PlayerChatEvent.
      Parameters:
      player - the player sending the message
      message - the message being sent
  • Method Details