Runs when a player's voice chat connects, a moment after they join
on voice connect:
if {%player%.voicebanned} is true:
mute voice of player
What this event gives a script
In the block
What it is
{_group}
The group's name
eventon voice disconnect:HyperVoiceexample
Runs when it disconnects
on voice disconnect:
log "%player.name% left the voice chat"
What this event gives a script
In the block
What it is
{_group}
The group's name
eventon voice group join "<name>":HyperVoiceexample
Runs when a player joins that group, by a script or by themselves. Without a name: any group
on voice group join "Staff":
send "&cStaff channel: keep it professional."
What this event gives a script
In the block
What it is
{_group}
The group's name
eventon voice group leave "<name>":HyperVoiceexample
Runs when they leave it
on voice group leave "Staff":
send "&7You left the staff channel."
What this event gives a script
In the block
What it is
{_group}
The group's name
Guide and examples
on voice connect:
if {%player%.voicebanned} is true:
mute voice of player
on voice disconnect:
log "%player.name% left the voice chat"
on voice group join "Staff":
send "&cStaff channel: keep it professional."
on voice group leave "Staff":
send "&7You left the staff channel."
on voice group leave:
log "%player.name% left the voice group %{_group}%"
Syntax
Effect
on voice connect:
Runs when a player's voice chat connects, a moment after they join
on voice disconnect:
Runs when it disconnects
on voice group join "<name>":
Runs when a player joins that group, by a script or by themselves. Without a name: any group
on voice group leave "<name>":
Runs when they leave it
Inside the blocks player is the player, and in the two group events {_group} is the group's name.