3 ServerConfigMeta config;
5 override void OnSuccess(
int code)
7 Print(
"config downloaded");
12 override void OnError(
int code,
int restCode,
int apiCode)
14 Print(
"config download error");
19 class SCR_RCONCommander: RCONCommander
25 ref array<string> commandSegments =
new array<string>;
26 sCommand.Split(
" ", commandSegments,
true);
28 if (commandSegments.Count() != 2)
30 Print(
"Invalid command format", LogLevel.ERROR);
34 switch(commandSegments[0])
38 Print(
"config command received");
40 string configId = commandSegments[1];
42 ServerConfigApi ca =
GetGame().GetBackendApi().GetServerConfigApi();
48 default: Print(
"unknown command");
break;