HyperScript
Docs

← All of the Docs HyperVoice

Groups HyperVoice

effectcreate voice group <name>HyperVoice

Make a group. With a name that is taken, nothing happens

create voice group "Red"
effectcreate voice group <name> with password <text>HyperVoice

The same, with a password players have to type to join it themselves

create voice group "Staff" with password "letmein" hidden
effectcreate voice group <name> hiddenHyperVoice

It is not shown in the list of groups players can join

create voice group "Staff" with password "letmein" hidden
effectcreate voice group <name> openHyperVoice

Those in the group also hear players near them who are not in it

create voice group "Lobby" open
effectcreate voice group <name> isolatedHyperVoice

Those in the group hear only each other, and nobody outside hears them

create voice group "Arena" isolated
effectdelete voice group <name>HyperVoice

Remove a group; whoever is in it is taken out first

delete voice group "Red"
effectadd <who> to voice group <name>HyperVoice

Put a player in a group, making an ordinary one if there is none of that name

add player to voice group arg.1
effectremove <who> from voice groupHyperVoice

Take a player out of the group they are in

remove player from voice group
Guide and examples
on load:
    create voice group "Red"
    create voice group "Blue"
    create voice group "Staff" with password "letmein" hidden
    create voice group "Arena" isolated
    create voice group "Lobby" open

command /team <red|blue>:
    players only: true
    trigger:
        add player to voice group arg.1
        send "&aYou talk with team %arg.1% now."

command /leavevoice:
    players only: true
    trigger:
        remove player from voice group
        send "&7You talk to those near you again."

command /endgame:
    permission: "game.admin"
    trigger:
        for each {_name} in players in voice group "Red":
            remove {_name} from voice group
        delete voice group "Red"
        delete voice group "Blue"
SyntaxEffect
create voice group <name>Make a group. With a name that is taken, nothing happens
create voice group <name> with password <text>The same, with a password players have to type to join it themselves
create voice group <name> hiddenIt is not shown in the list of groups players can join
create voice group <name> openThose in the group also hear players near them who are not in it
create voice group <name> isolatedThose in the group hear only each other, and nobody outside hears them
delete voice group <name>Remove a group; whoever is in it is taken out first
add <who> to voice group <name>Put a player in a group, making an ordinary one if there is none of that name
remove <who> from voice groupTake a player out of the group they are in
  • with password, hidden and open or isolated can be combined on one line.
  • Without open or isolated, a group is an ordinary one: its members hear each other everywhere, and players near them hear them as well.
  • A group made by a script stays when it is empty, until it is deleted or the server restarts. Make the groups you need in on load:.
  • A player without the mod, or one who is offline, cannot be put in a group; the line does nothing.