Interface PlayerChatEvent
- All Superinterfaces:
Event
,MessageEvent
- All Known Subinterfaces:
PlayerChatEvent.Decorate
,PlayerChatEvent.Submit
Fired when sending a chat message.
To modify the message use
PlayerChatEvent.Decorate
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Fired when previewing a message by a player orsimulating chat
static interface
Fired when a message is sent by a player. -
Method Summary
Methods inherited from interface org.spongepowered.api.event.message.MessageEvent
message, originalMessage, setMessage
-
Method Details
-
player
Optional<ServerPlayer> player()Returns the player sending the message.- Returns:
- The player sending the message
-