effect
send event <name> to server <name>HyperVelocityRun the on receive event blocks for that name on another server
send event "alert" with variable "Text", arg.2 to server arg.1← All of the Docs HyperVelocity
send event <name> to server <name>HyperVelocityRun the on receive event blocks for that name on another server
send event "alert" with variable "Text", arg.2 to server arg.1send event <name> to all serversHyperVelocityThe same, on every other server
send event "ban" with variable "Target", arg.1 with variable "Reason", arg.2 to all serverswith variable <name>, <value>HyperVelocityAttach a value; write it once per value, before to
send event "alert" with variable "Text", arg.2 to server arg.1on receive event <name>:HyperVelocityThe block that runs when the event arrives
on receive event "ban":
set {_p} to {_Target} parsed as offlineplayer
ban {_p} because {_Reason}
log "%{_p}% was banned from %{_sender_server}%"One server can make something happen on another. The sender names an event and may attach values; the receiver has a block for it.
On the sending server:
command /netban <player> <reason>:
permission: "staff.ban"
trigger:
send event "ban" with variable "Target", arg.1 with variable "Reason", arg.2 to all servers
ban arg.1 because arg.2
command /alert <server> <text>:
permission: op
trigger:
send event "alert" with variable "Text", arg.2 to server arg.1
On every receiving server:
on receive event "ban":
set {_p} to {_Target} parsed as offlineplayer
ban {_p} because {_Reason}
log "%{_p}% was banned from %{_sender_server}%"
| Syntax | Effect |
|---|---|
send event <name> to server <name> | Run the on receive event blocks for that name on another server |
send event <name> to all servers | The same, on every other server |
with variable <name>, <value> | Attach a value; write it once per value, before to |
on receive event <name>: | The block that runs when the event arrives |
with variable "Target", arg.1 is read as {_Target}. Names ignore case.{_sender_server} is always there too: the name of the server the event came from.on receive event: without a name runs for every event that arrives.send with no target goes to the console. Use the attached values to say who it is about.on recieve event is accepted as well, for those of us who spell it that way.