Changing Player Character's On Your Don't Starve Together Server

Information on how to Change a Player Character on Your Don't Starve Together Server

Summary

Sometimes, a player on your Don’t Starve Together server may want to change their character after they’ve already joined. This guide explains how to help them do that as an administrator.

error icon
Note:
You must be connected as an administrator to perform these steps. If you’re not yet set up, see our guide on Adding An Admin To Your Don't Starve Together Server.

Drop a Player’s Inventory

Despawning a player will remove their inventory items, so it’s best to have them drop everything first.

  1. Open the developer console by pressing the ~ (tilde) key.

  2. Run the command:

    c_listallplayers()

    This will show each player’s ID.

  3. Drop the player’s items using:

    AllPlayers[number].components.inventory:DropEverything()

    Replace number with the player’s ID.
    Example:

    AllPlayers[3].components.inventory:DropEverything()

Despawning a Player

To allow a player to reselect their character, they need to be despawned, which will return them to the character selection screen.

  1. Open the developer console again using the ~ (tilde) key.

  2. Run the command:

    c_listallplayers()

    to view the player’s ID.

  3. Despawn the player by entering:

    c_despawn(AllPlayers[number])

    Replace number with their ID.
    Example:

    c_despawn(AllPlayers[3])

Did this answer your question?
😞
😐
😁