Library serverinfo

Server info functions.

Functions

airDensity() Returns the air density.
gamemode() Returns the gamemode as a String
gravity() Returns the server's acceleration due to gravity vector.
hostname() Returns The hostname
isDedicatedServer() Returns whether or not the server is a dedicated server
isLan() Returns true if the server is on a LAN
isSinglePlayer() Returns whether or not the current game is single player
map() Returns the map name
maxPlayers() Returns the maximum player limit
numPlayers() Returns the number of players on the server
performanceSettings() Returns a table containing physics environment settings.


Functions

serverinfo.airDensity()
Returns the air density. See Glua's physenv.GetAirDensity()

Environment:

Shared
serverinfo.gamemode()
Returns the gamemode as a String

Environment:

Shared
serverinfo.gravity()
Returns the server's acceleration due to gravity vector.

Environment:

Shared
serverinfo.hostname()
Returns The hostname

Environment:

Shared
serverinfo.isDedicatedServer()
Returns whether or not the server is a dedicated server

Environment:

Shared
serverinfo.isLan()
Returns true if the server is on a LAN

Environment:

Shared
serverinfo.isSinglePlayer()
Returns whether or not the current game is single player

Environment:

Shared
serverinfo.map()
Returns the map name

Environment:

Shared
serverinfo.maxPlayers()
Returns the maximum player limit

Environment:

Shared
serverinfo.numPlayers()
Returns the number of players on the server

Environment:

Shared
serverinfo.performanceSettings()
Returns a table containing physics environment settings.

Environment:

Shared

Valid XHTML 1.0!