Skip to main content

Admin Manager

The admin manager is used for configuring admins on the server.


Add Admin​

await RCONClientV2.admins.add(playerId, group, comment);

Parameters​

NameDescriptionTypeRequired
playerIdThe admin's player ID.stringTrue
groupThe group to add the admin to.stringTrue
commentThe comment/nickname for the admin.stringFalse

Returns​

Promise<{ success: boolean, error?: string }>


Remove Admin​

await RCONClientV2.admins.remove(playerId);

Parameters​

NameDescriptionTypeRequired
playerIdThe admin's player ID.stringTrue

Returns​

Promise<{ success: boolean, error?: string }>