sendMessageToAll
Sends a message to all players in the server.
This method can be used to broadcast announcements, chat room rules, or other messages to all players in the server.
Syntax
engine.chat.sendMessageToAll(message);
Parameters
Name | Type | Description |
---|---|---|
message | string | The message to be broadcasted to all players in the chat |
Example
engine.chat.sendMessageToAll('Welcome to my {green}Server');
Available on: Server