ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setVoiceEnabled

Function

setVoiceEnabled

ServerPlayersTrilogy Hub only

Turns voice chat on or off on the server.

Syntax

bool setVoiceEnabled(bool enabled)

Arguments

enabledbool
true turns it on.

Returns

true on success.

Example

setVoiceEnabled(true)

Notes

Immediately for everyone. The change takes effect immediately for all players. The default state comes from the voice section of server-config.json.

See also