GetServerName: Difference between revisions
Jump to navigation
Jump to search
m (Minor fix) |
m (Reverted edits by Diki (talk) to last revision by AlexTMjugador) |
||
(4 intermediate revisions by 3 users not shown) |
Latest revision as of 21:23, 21 December 2016
This function retrieves the server's name.
Syntax
string getServerName ( )
Returns
A string containing the server's name.
Example
This example creates a console command that outputs the server's name to the chatbox.
function outputServerName ( ) outputChatBox ( getServerName( ) ) end -- Add console command 'getServerName' addCommandHandler ( "getServerName", outputServerName )
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown