Class PlayerChatEvent

java.lang.Object
fr.hytale.loader.event.types.player.PlayerChatEvent
All Implemented Interfaces:
com.hypixel.hytale.event.IBaseEvent<Void>, com.hypixel.hytale.event.IEvent<Void>

public class PlayerChatEvent extends Object implements com.hypixel.hytale.event.IEvent<Void>
Called when a player sends a chat message.

This event allows mods to intercept, modify, or cancel chat messages. The message can be modified before being broadcast to other players, and the event can be cancelled to prevent the message from being sent.

Since:
1.0.0
Version:
1.0.4
Author:
HytaleLoader
  • Constructor Details

    • PlayerChatEvent

      public PlayerChatEvent(com.hypixel.hytale.server.core.event.events.player.PlayerChatEvent originalEvent)
  • Method Details

    • getSender

      public com.hypixel.hytale.server.core.universe.PlayerRef getSender()
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • setCancelled

      public void setCancelled(boolean cancelled)
    • isCancelled

      public boolean isCancelled()