Server
Represents a game server.
Properties
Section titled “Properties”Data about this server.
Type: ServerData
ip Getter
Section titled “ip ”The IP address of the server.
Type: string
langCode Getter
Section titled “langCode ”The language of the server (en/xx/it/pt).
Type: string
maxPlayers Getter
Section titled “maxPlayers ”The maximum number of players.
Type: number
name Getter
Section titled “name ”The name of the server.
Type: string
playerCount Getter
Section titled “playerCount ”The number of current players.
Type: number
port Getter
Section titled “port ”The port number the server is on.
Type: number
Methods
Section titled “Methods”isCanned
Section titled “isCanned”The chat-level restriction of the server (0=canned, 2=free).
Returns: boolean
isFull
Section titled “isFull”Whether the server is full (at or above capacity).
Returns: boolean
isOnline
Section titled “isOnline”Whether the server is online.
Returns: boolean
isUpgrade
Section titled “isUpgrade”Whether the server is an upgrade-only server.
Returns: boolean