RCON
Summary
Methods
Methods
SendCommand
SendCommand(command: string): string{}
Parameters
| Name |
Type |
Description |
| command |
string |
|
Returns
| Type |
Description |
| string{} |
|
SendCommand
SendCommand(command: string, args: string{}): string{}
Parameters
| Name |
Type |
Description |
| command |
string |
|
| args |
string{} |
|
Returns
| Type |
Description |
| string{} |
|
RegisterCommand
RegisterCommand(command: string, flags: RemoteCommandFlag, callback: callable): int
Parameters
| Name |
Type |
Description |
| command |
string |
|
| flags |
RemoteCommandFlag |
|
| callback |
callable |
A callback in the form function(command: string, args: string{}, loggedIn: bool): string{}. |
Returns
RegisterCommand
RegisterCommand(command: string, flags: RemoteCommandFlag, context: any, callback: callable): int
Parameters
| Name |
Type |
Description |
| command |
string |
|
| flags |
RemoteCommandFlag |
|
| context |
any |
A context value to pass to the callback. |
| callback |
callable |
A callback in the form function(context: any, command: string, args: string{}, loggedIn: bool): string{}. |
Returns
DeregisterCommand
DeregisterCommand(handle: int)
Parameters
| Name |
Type |
Description |
| handle |
int |
|
GetServerGuid
GetServerGuid(): Guid | nil
Returns
| Type |
Description |
| Guid | nil |
|
TriggerEvent
TriggerEvent(event: string)
Parameters
| Name |
Type |
Description |
| event |
string |
|
TriggerEvent
TriggerEvent(event: string, args: string{})
Parameters
| Name |
Type |
Description |
| event |
string |
|
| args |
string{} |
|