Skip to main content

Chat

Chat is a static class used for various actions regarding the chat.


Summary

Methods


Methods

BroadcastMessage

Chat:BroadcastMessage(message: string)

Parameters:

ParameterTypeDefaultDescription
messagestring-

Sends a chat message to all users.

Example

Chat:BroadcastMessage("Hello, world!")

UnicastMessage

Chat:UnicastMessage(message: string, player: Player)

Parameters:

ParameterTypeDefaultDescription
messagestring-
playerPlayer-

Sends a chat message to a specific user.

Example

Chat:UnicastMessage("Hello, world!", game["Players"]["willemsteller"])