Skip to main content

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

NameTypeDescription
messagestringThe message to be broadcasted to all players in the chat

Example

engine.chat.sendMessageToAll('Welcome to my {green}Server');

Available on: Server