Admin Manager
The admin manager is used for managing the admin accounts of the server.
List Admin Groups
await RCONClientV1.admins.listAdminGroups();
Returns
List<string>
List Admins
await RCONClientV1.admins.list();
Returns
Array<{ playerId: string, group: string, comment: string }>
Add Admin
await RCONCLientV1.admins.add(playerId, group, comment);
Parameters
Name | Description | Type | Required |
---|---|---|---|
playerId | The admin's player ID. | string | True |
group | The group to add the admin to. Retrieved from listAdminGroups | string | True |
comment | The comment/nickname for the admin. | string | False |
Returns
Promise<"SUCCESS" | "FAIL">
Remove Admin
await RCONCLientV1.admins.remove(playerId);
Parameters
Name | Description | Type | Required |
---|---|---|---|
playerId | The admin's player ID. | string | True |
Returns
Promise<"SUCCESS" | "FAIL">