HyperScript
Docs

← All of the Docs HyperVelocity

Channels HyperVelocity

effectsend <text> to network channel <name>HyperVelocity

Hand a line to every server, this one included

send "%player%: %args%" to network channel "staff"
structureon network message <name>:HyperVelocity

Runs on each server when a line arrives on that channel. {_message} is the text, {_sender} the player whose trigger sent it (empty for the console), {_sender_server} where it came from

on network message "staff":
    for each {_name} in this server players:
        if {_name} has permission "staff.chat":
            send "&c[Staff] &f%{_message}% &8(%{_sender_server}%)" to {_name}
Guide and examples

A line of text for whoever is listening, on every server: staff chat, announcements, a shared death feed.

command /sc <message>:
    permission: "staff.chat"
    trigger:
        send "%player%: %args%" to network channel "staff"

on network message "staff":
    for each {_name} in this server players:
        if {_name} has permission "staff.chat":
            send "&c[Staff] &f%{_message}% &8(%{_sender_server}%)" to {_name}
SyntaxEffect
send <text> to network channel <name>Hand a line to every server, this one included
on network message <name>:Runs on each server when a line arrives on that channel. {_message} is the text, {_sender} the player whose trigger sent it (empty for the console), {_sender_server} where it came from
  • The block runs once on every server, as the console; it decides who gets to read the line.
  • on network message: without a name hears every channel.