HyperScript
Docs

← All of the Docs HyperVoice

Who is connected HyperVoice

expressionvoice connected <who>HyperVoice

Whether they have the mod and are connected to the voice chat

if voice connected arg.1:
    if voice group of arg.1 is set:
        send "&7%arg.1% is in the group &f%voice group of arg.1%&7."
    else:
        send "&7%arg.1% has voice chat and is in no group."
expressionvoice group of <who>HyperVoice

The name of the group they are in; unset if none

send "&7%arg.1% is in the group &f%voice group of arg.1%&7."
expressionvoice groupsHyperVoice

A list of the names of every group

for each {_group} in voice groups:
    send "&e%{_group}%&7: " + join players in voice group {_group} with ", "
expressionplayers in voice group <name>HyperVoice

A list of the names of the online players in that group

send "&e%{_group}%&7: " + join players in voice group {_group} with ", "
expressionvoice muted <who>HyperVoice

Whether a script has muted them

if voice muted arg.1:
    send "&c%arg.1% is muted."
Guide and examples
command /voice <player>:
    trigger:
        if voice connected arg.1:
            if voice group of arg.1 is set:
                send "&7%arg.1% is in the group &f%voice group of arg.1%&7."
            else:
                send "&7%arg.1% has voice chat and is in no group."
        else:
            send "&7%arg.1% does not have voice chat."
        if voice muted arg.1:
            send "&c%arg.1% is muted."

command /voicegroups:
    trigger:
        for each {_group} in voice groups:
            send "&e%{_group}%&7: " + join players in voice group {_group} with ", "
SyntaxResult
voice connected <who>Whether they have the mod and are connected to the voice chat
voice group of <who>The name of the group they are in; unset if none
voice groupsA list of the names of every group
players in voice group <name>A list of the names of the online players in that group
voice muted <who>Whether a script has muted them