server class
server.ip
lua
function server.ip() endReturns the IP of the server you connected to.
Returns "none" or "world" if you aren't connected to a server.
Returns
- string: The current server IP.
server.port
lua
function server.port() endReturns the Port of the server you connected to.
Returns 0 if you aren't connected to a server.
Returns
- string: The current server Port.
server.ping
lua
function server.ping() endReturns the ping of the server you are connected to.
Returns
- number: the current ping.
Reference: server.lua