HyperScript
Docs

← All of the Docs HyperVoice

Hearing nothing, and how far a voice carries HyperVoice

expressiondeafen <who>HyperVoice

That player is sent nobody's voice, until undeafen <who>. They can still speak

deafen arg.1
expressionundeafen <who>HyperVoice

They hear the others again

undeafen arg.1
expressionvoice disabled <who>HyperVoice

True if a player has the voice chat installed but switched off in their own game: they hear nothing and cannot speak, by their own choice

if voice disabled arg.1:
    send "&7%arg.1% has switched the voice chat off."
expressionvoice deafened <who>HyperVoice

True while a player is deafened this way

if voice deafened arg.1:
    undeafen arg.1
    send "&a%arg.1% hears the others again."
effectset voice distance of <who> to <n>HyperVoice

How many blocks that player's voice carries: less than the server's own distance, or more, up to 512

set voice distance of player to 6
effectreset voice distance of <who>HyperVoice

Their voice carries as far as everybody's again

reset voice distance of player
expressionvoice distance of <who>HyperVoice

How far their voice carries, in blocks: what was set, or the server's own distance

reset voice distance of player
Guide and examples
command /deafen <target:player>:
    permission: "voice.staff"
    trigger:
        if voice deafened arg.1:
            undeafen arg.1
            send "&a%arg.1% hears the others again."
        else:
            deafen arg.1
            send "&e%arg.1% no longer hears anybody."

command /shout:
    permission: "voice.shout"
    trigger:
        set voice distance of player to 96
        send "&6Your voice now carries 96 blocks, for a minute."
        wait 1 minute
        reset voice distance of player

command /canhear <target:player>:
    trigger:
        if voice disabled arg.1:
            send "&7%arg.1% has switched the voice chat off."
        else if voice connected arg.1:
            send "&a%arg.1% can hear you."
        else:
            send "&7%arg.1% does not have the voice chat."

command /whisper:
    trigger:
        set voice distance of player to 6
        send "&7Your voice carries &f%voice distance of player% &7blocks."
SyntaxEffect
deafen <who>That player is sent nobody's voice, until undeafen <who>. They can still speak
undeafen <who>They hear the others again
voice disabled <who>True if a player has the voice chat installed but switched off in their own game: they hear nothing and cannot speak, by their own choice
voice deafened <who>True while a player is deafened this way
set voice distance of <who> to <n>How many blocks that player's voice carries: less than the server's own distance, or more, up to 512
reset voice distance of <who>Their voice carries as far as everybody's again
voice distance of <who>How far their voice carries, in blocks: what was set, or the server's own distance
  • Both hold until the server stops, or until they are taken back; they are not kept across a restart.
  • A distance is for talking to those nearby. In a voice group it changes nothing: a group hears its members wherever they are.
  • A voice that carries further reaches the players the voice chat would have left out, with the sound still coming from where the speaker stands. A whisper is never carried further.