HyperScript
Docs

← All of the Docs HyperVelocity

Proxy variables HyperVelocity

effectsend variable {<name>} to server <name>HyperVelocity

Copy a variable's value to the same variable on another server

send variable {%player%.coins} to server "pvp"
effectsend variable {<name>} to all serversHyperVelocity

The same, to every other server

send variable {shared.motd} to all servers
Guide and examples
command /setmotd <text>:
    permission: op
    trigger:
        set {shared.motd} to args
        send variable {shared.motd} to all servers
        send "&aThe message of the day was changed on every server."

command /sharecoins:
    trigger:
        send variable {%player%.coins} to server "pvp"
        send "&7Your coins were copied to the PvP server."
SyntaxEffect
send variable {<name>} to server <name>Copy a variable's value to the same variable on another server
send variable {<name>} to all serversThe same, to every other server
  • The other server gets the value under the same name. It works for every kind of value: numbers, text, lists, items, locations, durations.
  • A player's own variable arrives as that player's own: send variable {%player%.coins} to server "pvp" sets that player's {%player%.coins} there.
  • Sending a variable that is not set deletes it on the other server.
  • It is a copy made at that moment, not a link. Send it again when it changes.
  • to all servers does not include the server that is sending.
  • A server can refuse variables it should not be told: see accept-variables under Installation.