Enabling Admin Access
WARNING
This page is WIP and may be missing important information/outdated
This page details how to enable administrator access on your self-hosted server.
For Advanced Users Only
- These operations only work if you are self-hosting your own server and are not applicable to normal users on the community server.
- You must have successfully launched your self-hosted server and logged in as the user you want to add as admin at least once before proceeding.
- These are advanced user operations, do not attempt if you are uncomfortable with figuring out technical documents and modifying configuration files.
- Determine your
<Server Data Folder>by referring to Managing Server Data. - Open
<Server Data Folder>\data\account.jsonin a text editor which supports JSON, e.g. Visual Studio Code. - Copy the GUID of the account you want to add as administrator (marked with 'x' in the following example):
json
{"SchemaVersion":2,"Accounts":{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx":{"IdentityHash":Determining the GUID to Use
- You may want to use the "Format Document" option in Visual Studio Code (by right-clicking in the document and choosing it) for readability.
- Each account has a
DisplayNameproperty which can help determine whether it is the account you wish to add as admin. TheDisplayNameis visible in the game launcher when you login.
- Open
<Server Data Folder>\data\chat-admins.jsonin your chosen JSON text editor - Add the GUID from step 3 into the admins array
json
{
"admins": [
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
]
}Adding Multiple Admins
Multiple admin GUIDs can be added, separated by a comma