Methods
-
parseLogString(string){Object}
-
Parses the log strings returned from ShowAdminLog into objects.
Name Type Description stringstring Returns:
Type Description Object -
asyncsafeRcon(promise, fallback){Promise.<(T|null)>}
-
Safely resolves an RCON promise without throwing.
Name Type Default Description promisePromiseLike.<T> fallbackT | null null optional Returns:
Type Description Promise.<(T|null)> -
xor(buffer, xorKey){Buffer}
-
Applies an XOR cipher to a buffer using the provided key.
Name Type Description bufferBuffer The input buffer.
xorKeyBuffer The XOR key.
Returns:
Type Description Buffer The transformed buffer.
Type Definitions
-
AdminUserRecordObject
-
Properties:
Name Type Description userIdstring groupstring commentstring -
BanRecordObject
-
Properties:
Name Type Description userIdstring userNamestring timeOfBanningstring durationHoursnumber banReasonstring adminNamestring -
MapRotationEntryObject
-
Properties:
Name Type Description namestring gameModestring timeOfDaystring idstring positionnumber -
MapSequenceEntryObject
-
Properties:
Name Type Description namestring gameModestring timeOfDaystring idstring File path of the map
positionnumber -
PlayerPositionObject
-
Properties:
Name Type Description xnumber ynumber znumber -
PlayerScoreDataObject
-
Properties:
Name Type Description combatnumber offensenumber defensenumber supportnumber -
PlayerStatsObject
-
Properties:
Name Type Description deathsnumber infantryKillsnumber vehicleKillsnumber teamKillsnumber vehiclesDestroyednumber -
RCONCommandInformationObject
-
Properties:
Name Type Description namestring textstring descriptionstring dialogueParametersArray.<RconCommandDialogueParameter> -
RconCommandDialogueParameterObject
-
Properties:
Name Type Description typestring namestring idstring displayMemberstring valueMemberstring -
RequestCacheItemObject
-
Properties:
Name Type Description resolvefunction The promise resolve function.
rejectfunction The promise reject function.
requestMessageRequestMessage The instantiated request message.
encryptedboolean Whether the message was sent encrypted.
-
RequestCacheItemObject
-
Properties:
Name Type Description resolvefunction The promise resolve function.
requestMessageRequestMessage The original request message.
encryptedboolean Whether the request was encrypted.
-
ServerConfigurationObject
-
Properties:
Name Type Description serverNamestring buildNumberstring buildRevisionstring supportedPlatformsArray.<string> passwordProtectedboolean -
SessionObject
-
Properties:
Name Type Description serverNamestring mapNamestring mapIdstring gameModestring remainingMatchTimenumber matchTimenumber alliedFactionnumber axisFactionnumber alliedScorenumber axisScorenumber playerCountnumber alliedPlayerCountnumber axisPlayerCountnumber maxPlayerCountnumber queueCountnumber maxQueueCountnumber vipQueueCountnumber maxVipQueueCountnumber -
VIPPlayerObject
-
Properties:
Name Type Description idstring commentstring