# How To Add Admins to Your Don't Starve Together Server (/docs/dont-starve-together/adding-admins)



import { Step, Steps } from 'fumadocs-ui/components/steps';

Adding admins to your Don't Starve Together server gives trusted players the ability to use console commands, manage players, and control the server.

<Steps>
  <Step>
    Find the Player's Klei User ID [#find-the-players-klei-user-id]

    Each player has a unique Klei User ID (KU\_ID) that looks like `KU_xxxxxxxx`. Players can find their own ID by opening the in-game console and typing `TheNet:GetUserID()`. Alternatively, check the server log files for connected player IDs.
  </Step>

  <Step>
    Open Files [#open-files]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and select your Don't Starve Together server. In the sidebar, click **Files**.
  </Step>

  <Step>
    Navigate to the Cluster Directory [#navigate-to-the-cluster-directory]

    Go to the cluster directory (usually something like `DoNotStarveTogether/Cluster_1/`).
  </Step>

  <Step>
    Edit or Create adminlist.txt [#edit-or-create-adminlisttxt]

    Open the `adminlist.txt` file. If it does not exist, create it. Add one Klei User ID per line:

    ```
    KU_xxxxxxxx
    KU_yyyyyyyy
    ```
  </Step>

  <Step>
    Save and Restart [#save-and-restart]

    Save the file and restart your server from the **Console** page.
  </Step>
</Steps>

> 📝 **Note:** Admin players can use the in-game console (press `~`) to run commands like `c_rollback(1)` to roll back one day, `c_regenerateworld()` to regenerate the world, or `TheNet:Kick(userid)` to kick a player.

> 💡 **Tip:** You can also set up a `blocklist.txt` file with the same format to permanently ban specific players from your server.
