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>
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 Summary
ConstructorsConstructorDescriptionPlayerChatEvent(com.hypixel.hytale.server.core.event.events.player.PlayerChatEvent originalEvent) -
Method Summary
Modifier and TypeMethodDescriptioncom.hypixel.hytale.server.core.universe.PlayerRefbooleanvoidsetCancelled(boolean cancelled) voidsetMessage(String message)
-
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
-
setMessage
-
setCancelled
public void setCancelled(boolean cancelled) -
isCancelled
public boolean isCancelled()
-