-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Once the Admin Mod is running, admins can be added via the game's in-game chat. Only the host can add/modify/remove admins. The host can issue the chat command:
!addadmin <playerName> <Powers> <Level>
<playerName>
is a unique part of the players name but it does not need to be the full name. For example, if there were 3 clients connected (Toaster, Toastee, Toasted) and we wanted to make sure Toasted was an admin then you could start with !addadmin ted
or !addadmin Toasted
.
<Powers>
is the set of characters for each power that you want to grant. Use the Root power to grant all powers. See Powers for the mapping of powers to characters.
<Level>
is a number between 0-255 the represents the heirarchy of the admin on the server and affects who they can target. See Levels for more information.
For example, to add Toasted
as an admin with permission to kick, restart the round, and manage the commanders (demote/commander restrictions/etc), with a moderate level:
!addadmin ted cik 80
It's also possible to add a new admin offline by modifying the Silica\UserData\admins.json
file. Please do not update the admins.json
file while the host server is running because the Admin Mod does not keep track if there were any modifications made before it overwrites the file. Admin entires will look like:
[
{
"Name": "Toasted",
"SteamId": 76561197972375053,
"Powers": 67108864,
"Level": 150,
"CreatedOn": 1688371400,
"LastModifiedOn": 1688371400
}
]
After making any direct modifications to a .json file, it's usually a good idea to validate that the file is still in the correct format for the next time the server starts up to read the information. (e.g., https://jsonlint.com/)
graph LR;
A[!kick Mod]-->B[Admin Extension];
C[!ban Mod]-->B[Admin Extension];
D[!mute Mod]-->B[Admin Extension];
G[Other Mods]-->B[Admin Extension]
B[Admin Extension]-->E[Admin Mod];
E-- Extension Methods --> F[Silica Player Class]
Silica logo used with permission from Bohemia Interactive.