GetCommandHandlers: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 8: | Line 8: | ||
table getElementsByType ( [ resource theResource ] ) | table getElementsByType ( [ resource theResource ] ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Optional Arguments== | ==Optional Arguments== | ||
*'''theResource:''' The resource from which you wish to retrieve all command handlers. Or leave it empty to retrieve command handlers of all resources. | *'''theResource:''' The resource from which you wish to retrieve all command handlers. Or leave it empty to retrieve command handlers of all resources. | ||
</section> | |||
===Returns=== | ===Returns=== |
Revision as of 13:14, 9 October 2016
This function is used to retrieve a list of all the registered command handlers of a given resource (or of all resources).
Syntax
Click to collapse [-]
Servertable getElementsByType ( [ resource theResource ] )
Optional Arguments
- theResource: The resource from which you wish to retrieve all command handlers. Or leave it empty to retrieve command handlers of all resources.
Returns
Returns a table containing all the commands of the given resource or a table with subtables containing the command and theResource pointer ( { "command", theResource } )
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown