HyperScript
Docs

← All of the Docs HyperVelocity

Server status HyperVelocity

expressionmax players of server <name>HyperVelocity

How many players that server has room for, as it says in the server list; unset while it has not answered

set {_room} to max players of server arg.1
structureon server online <name>: / on server offline <name>:HyperVelocity

Runs when a server that was down can be reached again, or one that was up no longer can. {_server} is its name. Without a name, for any server

on server online "survival":
    broadcast "&aSurvival is back."
Guide and examples
on server offline "survival":
    broadcast "&cSurvival has gone down."

on server online "survival":
    broadcast "&aSurvival is back."

command /room <server>:
    trigger:
        set {_online} to size of players on server arg.1
        set {_room} to max players of server arg.1
        send "&7%arg.1%: &f%{_online}%&7/&f%{_room}%"
SyntaxEffect
max players of server <name>How many players that server has room for, as it says in the server list; unset while it has not answered
on server online <name>: / on server offline <name>:Runs when a server that was down can be reached again, or one that was up no longer can. {_server} is its name. Without a name, for any server
  • These come from asking each server directly, every fifth refresh (every 15 seconds with the settings above), so they can be that far behind.
  • The first time a server is looked at only sets what is known about it; the events are for changes after that.