Now offering Palworld Game Servers!
Help
Register
Billing
Support
AA Game Hosting
  • 0 Shopping Cart
  • Home
  • Store
    • Browse All
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Affiliates
  • Contact Us
  • More
  • Account
    • Login
    • Register
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. AA Game Hosting
  4. Game Servers
  5. Dedicated Game Servers
  6. Don't Starve Together
  7. Admin/Console Commands for your Don't Starve Together Server

  Categories

1
AA Game Hosting

  Categories

  Tag Cloud

7daystodie 7dtd 7d2d experimental switch admin agario ark survival evolved structure collision dino dino stats player stats local world uploading world admin commands dlc map genesis arma 2 waiting host waiting host mod installation mod install atlas arma 3 configuration configuration guide mods wasteland commandlist admin list command missionfile arma3 FTP Guide FTP File Transfer Protocol scheduled tasks scheduled tasks Ark: Survival Evolved Multiplayer Survival Game Server help Dedicated Server Support Ark Survival Evolved Server Configuration Sunkenlands Upload Upload World Upload Save Save File Palworld Necesse Arma Reforger Arma Connect Arma Mods Mods V Rising V Rising Guide connect V RIsing Private Password V Rising Server Ban Kick V Rising admin Voice chat V Rising voice Save Saved Progress V Rising Preset Workshop Arma Reforger Scenario Arma Reforger Mission Arma3 mission Terraria TModLoader Join Tshock Valheim Server password upload Server name Project Zomboid Quickstart Steam workshop update conan Conan Exiles join upate palworld Palworld Server Connection barotrauma quickstart guide Minecraft Java curseforge java Forge Change campaign configure Update karma system enable The Forest traitors how to how to join server in-game avorion DayZ Modding commands quick Quick start galaxy Server Configurations Difficulty Offset Max Creature Level Loot Scale Wipe Wild Dinos Restore Backup Restore Timestamps Mod Installation Disabling Battleye Anti-cheat PVE Setup Incubation Settings Spawn Rates 7 days to die Game Difficulty Reinstallation Crossplay Option 7 Days to Die Specific Version Selection Darkness Fall Mod Installation Ragnarok DLC Scorched Earth DLC The Center DLC Extinction DLC Fjordur DLC Aberration DLC Structure Collision Abberation Expansion Map Switching Maps Genesis Expansion Map custom map Crystal Isles DLC Genesis DLC Genesis 2 DLC Lost Islands DLC Valguero DLC Crossplay Options Scenario IDs Avorion New Galaxy Create Galaxy Battalion 1944 Quickstart Guide Connecting to Server Blackwake Game Mode Friendly Settings Adding Admins Admins Chivalry Medieval Warfare Add Mods Connect to Server In-Game Connection Citadel:Forge with Fire server configurations Multipliers XP Rates Isle of Siptah Maps Creative Mode Conan Exiles Mod Mods Installation Day of Defeat Source Custom Maps Server Messages dayz standalone DSZA Launcher Ban Players Item Spawns Login Logout Gameplay Settings Installing Community Online Tools Installing Mods Installing CF Admin Tools Contaminated Areas Day Time Settings Day Time Night Time Acceleration Night Mode Deer Isle Expansion Map Mod Map Installation Change the Weather DayZ Weather Weather Snow Loadouts Player Loadouts dayz admin How to become an Admin Don't Starve Together how to connect Cluster Token Token Generation Generate Server Token Troubleshooting Guide Server not showing Delete Data Delete World Delete Save Caves Caves Setup Cluster Server Clustering Cave Server New Reign Beta Expansion DST DST Upload Save File Uploading Local Save File Server not starting Troubleshooting Console Commands Custom World Generate World ECO How to connect Eco Joining server

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

Admin/Console Commands for your Don't Starve Together Server Print

  • Don't Starve Together, DST, Admins, admin commands, Console Commands, Server Configurations
  • 0

don't-starve-together-logo.png

This guide will help you about admin/console commands on your Don't Starve Together Server.

 

Not a client yet? Order a Don't Starve Together server today with AA Game Hosting

 

Running a Don't Starve Together (DST) server often requires more than just hosting the game it involves managing players, maintaining stability, and customizing the gameplay experience. This is where Admin and Console Commands come in. Admin commands give server owners and moderators the ability to control various aspects of the game world, from spawning items and creatures to managing player permissions. Console commands, on the other hand, provide direct access to the game’s underlying functions, allowing you to troubleshoot issues, adjust settings, and tailor the server to your community’s needs. Whether you’re running a private server for friends or a large community hub, learning how to use admin and console commands effectively ensures smooth operation and a more enjoyable experience for everyone.

 

If you wish to use commands in-game, you’ll need to be made an admin of your server. Check out our other guide here.

 

Server Commands

Command Name Description
TheNet:Kick(userid) Kick Player Kicks a player out of the server
TheNet:Ban(userid) Ban Player Kicks and denies access to the server
c_regenerateshard() Regenerate a world shard Regenerates specified items in a shard.
TheNet:SetAllowIncomingConnections( true / false ) Enable/Disable new player joining Setting it to true is the default behavior (people can join). Setting it to false prevents anyone from joining.
c_announce("announcement") Make a server announcement This allows you to announce server shutdowns/restarts, so players do not just get disconnected without warning.

 

Common Commands

Command Name Description
c_spawn("prefab",amount) Spawn prefab Improved DebugSpawn("prefab"), spawns the amount of selected "prefab" under the mouse cursor.
c_give("prefab",amount) Give item Generates a quantity of selected "pre-made parts" in your inventory. It only works with backpacks and items that can be stored in inventory.
c_goadventuring() Go Adventuring Gives the player a set of starting items.
c_doscenario(scenario) Scenario Apply a scenario script to the selection and run it.
c_sethea​lth(percent) Set Your Health Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
c_setsanit​y(percent) Set Your Sanity Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
c_sethunger(pe​rcent) Set Your Hunger Set your hunger to a selected percentage. Note: use fractional numbers 0.90 = 90%.
c_setmoisture(pe​rcent) Set Your Moisture Adjust its humidity to a selected percentage. Note: use fractional numbers 0.90 = 90%.
c_settemperature(degrees) Temperature Set your temperature to a selected percentage. Note: use fractional numbers 0.90 = 90%.
c_godmode() God Mode It will no longer deplete your sanity, hunger, or health when attacked. You cannot use commands to change your stats while in God mode. When he is dead, he will be resurrected (resuscitation via c_godmode () will not put him in god mode when he is resurrected). To disable God mode, use the command again.
c_supergodmode() Super God Mode Like God mode, but it also sets all your stats to maximum even if you disable it. Similar to c_godmode (), it also revives you (reviving via c_supergodmode () does not put you in god mode when revived). To disable God mode, use the command again.
c_maintainhealth(ThePlayer) Maintain Your Health Similar to Supergod mode, but constantly regenerates your health. To cancel the process, enter c_cancelmaintasks (ThePlayer).
c_maintainsanity(ThePlayer) Maintain Your Sanity Similar to Supergod mode, but constantly regenerating your mind. To cancel the process, enter c_cancelmaintasks (ThePlayer).
c_maintainhunger(ThePlayer) Maintain Your Hunger Similar to Supergod mode, but constantly regenerates your hunger. To cancel the process, enter c_cancelmaintasks (ThePlayer).
c_maintaintemperature(ThePlayer) Maintain Your Temperature Similar to Supergod mode but constantly regenerates your temperature. To cancel the process, enter c_cancelmaintasks (ThePlayer)
c_maintainmoisture(ThePlayer) Maintain Your Moisture Similar to Supergod mode, but constantly regenerates your moisture. To cancel the process, enter c_cancelmaintasks (ThePlayer).
c_maintainall(ThePlayer) Maintain All Similar to Supergod mode, but constantly regenerates all stats. To cancel the process, enter c_cancelmaintasks (ThePlayer).
c_makeinvisible() Mob Invisibility Prevent mobs from targeting the player in combat. It does not work in all circumstances. i.e boss fights
c_speedmult(multiplier) Set Your Running Speed The standard bonus running speed is 1.2, making you twice as fast, and at 12 or more you can easily walk through walls and "over" water.

 

Player Commands

Command Name Description
GetPlayer().HUD:Hide()GetPlayer().HUD:Show() Hide and show HUD Hide or show (after hiding) the full HUD of the game.
GetPlayer().components.builder:GiveAllRecipes() Creative Mode You can craft everything for free. This includes items you never crafted before. After switching levels, you will need to re-enter the command.
GetPlayer().components.health:SetMaxHealth(value) Maximum Health Change the Maximum Health of your Characters
GetPlayer().components.sanity:SetMax(value) Maximum sanity Change the Maximum Sanity of your Characters
GetPlayer().components.hunger:SetMax(value) Maximum hunger Change the Maximum Hunger of your Characters
GetPlayer().components.hunger:Pause(true) Pause hunger Your Characters won't starve anymore.
c_listallplayers() List all players with username and player number. This seems to not work so well anymore. If you don't get a full list try this command, it will print the player list to the chat.
AllPlayers[number] Get a certain player AllPlayers[1] will get ThePlayer if you are the host. Other players should have numbers as shown on the scoreboard (In certain situations, the number may be wrong. You can be more precise by using c_listallplayers() first to see the username and character for each player number. Most of ThePlayer commands can be used with AllPlayers[number] instead of the player.
AllPlayers[number]:PushEvent('death') Kill a player Kill a player
AllPlayers[number]:PushEvent('respawnfromghost') Resurrect a player Revive a player
AllPlayers[number].components.builder:GiveAllRecipes( Give creative mode to a player Gives Creative Mode to a player in specific
c_goto(AllPlayers[number]) Teleport to a player Teleport to a player
GetPlayer().components.beaverness:SetPercent(1) Werebeaver Turn Woodie into the Werebeaver.

 

World Commands

Command Name Description
c_gonext("prefab") Teleport to Prefab After pressing enter, it teleports you to the first numerical instance of the named prefab. If multiple iterations of the prefab exist, a list of the entity numbers will be displayed in the console log. Each subsequent execution of the same command will transport the player from entity to entity in the order they were generated in the world.

ConsoleWorldEntity

UnderMouse():Remove()

c_select():Remove()

Delete Item Under Mouse After pressing enter, it deletes the item under your mouse. Use the second command on dedicated servers, the first command will not work.

for k,v in pairs(Ents) do if

v.prefab ==  "prefab" then

v:Remove() end end

Delete All After pressing enter, it deletes every instance of whatever item prefab is entered. Useful for long-running servers with lots of clutter.

​TheWorld:PushEvent

("ms_nextcycle")

Skip to the Next Day Cycle Skips x days. Change x to skip more days or parts of days (e.g. 16*30*4.5 to skip 4.5 days) WARNING: Too big values may freeze the game. (Depending on computer speed) - Note that this is here, so you can manually change the rate of the time skip. Use c_skip(x) to skip x amount.

c_skip(num)

Skip Day  

TheWorld.net.components.

clock:OnUpdate(16*30*x)

Skip time  
LongUpdate(X) Skip time units and update Skips X time units and performs the "LongUpdate" function on world objects Note: There are 30-time units per segment. To skip a whole day one can either use LongUpdate(480) or use multiplicative values such as LongUpdate(X*16*30) or LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip.
c_speedup() Speed up simulation Speed up the simulation of the world. Some events are determined by time past in the game, and hence can be triggered to happen earlier through this speed up. Skipping would not bring forward those events.
TheSim:SetTimeScale(X) Speed up simulation* Set the timescale of the simulation to a specific value X. The normal timescale corresponds to the value 1. The value 0 pauses the game. Note that console can not be used while the game is paused, preventing removing pause.

TheWorld:PushEvent

("ms_nextphase")

Skip phase  Skips the current phase

TheWorld:PushEvent

("ms_setclocksegs",

day=x,dusk=y,night=z})

Set segments Allows to set duration for day, dusk, and night (total value must NOT exceed 16)

TheWorld:PushEvent

("ms_setseason clocksegs",

{summer=day=sx,dusk=

sy,night=sz}, winter=day=

wx,dusk =wy,night=wz}})

Set season segments Allows to set the duration for the day, dusk, and night by season (total values must NOT exceed 16)

TheWorld:PushEvent

("ms_setseasonlength",

{season="summer", length=15})

Set season lengths Allows to set the duration of each season

TheWorld:PushEvent

("ms_setseason", "spring")

Start Spring Set season to spring

TheWorld:PushEvent

("ms_setseason", "summer")

Start Summer Set season to summer

TheWorld:PushEvent

("ms_setseason", "autumn")

Start Autumn Set season to autumn

TheWorld:PushEvent

("ms_setseason", "winter")

Start Winter Set season to winter

TheWorld:PushEvent 

("ms_ forceprecipitation")

Start Rain  Start raining

TheWorld:PushEvent

("ms_sendlightningstrike",

ConsoleWorldPosition())

Do Lightning Strike Lightning strikes on the mouse cursor. Will hit lightning rod instead if there is one near
cc_spawn("shadowmeteor", 1) Meteor Strike Meteor strikes on the mouse cursor. Spawns different kinds of rocks randomly. (This might crash the game)

for k, v in pairs(SPECIAL_EVENTS) do if v ~=

SPECIAL_EVENTS.NONE then local tech = TECH[k]

if tech ~= nil then tech.SCIENCE = 0

end end end function IsSpecialEventActive(event) return true end

Activate all Events Activates all Events at the same time. Doesn't work if in world gen the events section is set to Auto.
 
 
 
 
Did the above information not work for you?
Please click here to contact our support via a ticket.

Was this answer helpful?

Related Articles

How to Generate a Token for your Don't Starve Together Server This guide will help you on how to generate a token for your Don't Starve Together server.... I Can't See my Server in the Server List in Don't Starve Together (Troubleshooting Guide) This guide will help you on how to troubleshoot your Don't Starve Together server when it's not... Quickstart Guide for your Don't Starve Together Server This is a quick start guide to jumpstart your adventures on your Don't Starve Together server.... How to Delete your World and Generate a New One on your Don't Starve Together Server This guide will help you on How to Delete your World and Generate a New One on your Don't... How to Upload Local Save File to your Don't Starve Together Server This guide will help you on how to upload local save file on your Don't Starve Together Server....
« Back

  Tag Cloud

7daystodie 7dtd 7d2d experimental switch admin agario ark survival evolved structure collision dino dino stats player stats local world uploading world admin commands dlc map genesis arma 2 waiting host waiting host mod installation mod install atlas arma 3 configuration configuration guide mods wasteland commandlist admin list command missionfile arma3 FTP Guide FTP File Transfer Protocol scheduled tasks scheduled tasks Ark: Survival Evolved Multiplayer Survival Game Server help Dedicated Server Support Ark Survival Evolved Server Configuration Sunkenlands Upload Upload World Upload Save Save File Palworld Necesse Arma Reforger Arma Connect Arma Mods Mods V Rising V Rising Guide connect V RIsing Private Password V Rising Server Ban Kick V Rising admin Voice chat V Rising voice Save Saved Progress V Rising Preset Workshop Arma Reforger Scenario Arma Reforger Mission Arma3 mission Terraria TModLoader Join Tshock Valheim Server password upload Server name Project Zomboid Quickstart Steam workshop update conan Conan Exiles join upate palworld Palworld Server Connection barotrauma quickstart guide Minecraft Java curseforge java Forge Change campaign configure Update karma system enable The Forest traitors how to how to join server in-game avorion DayZ Modding commands quick Quick start galaxy Server Configurations Difficulty Offset Max Creature Level Loot Scale Wipe Wild Dinos Restore Backup Restore Timestamps Mod Installation Disabling Battleye Anti-cheat PVE Setup Incubation Settings Spawn Rates 7 days to die Game Difficulty Reinstallation Crossplay Option 7 Days to Die Specific Version Selection Darkness Fall Mod Installation Ragnarok DLC Scorched Earth DLC The Center DLC Extinction DLC Fjordur DLC Aberration DLC Structure Collision Abberation Expansion Map Switching Maps Genesis Expansion Map custom map Crystal Isles DLC Genesis DLC Genesis 2 DLC Lost Islands DLC Valguero DLC Crossplay Options Scenario IDs Avorion New Galaxy Create Galaxy Battalion 1944 Quickstart Guide Connecting to Server Blackwake Game Mode Friendly Settings Adding Admins Admins Chivalry Medieval Warfare Add Mods Connect to Server In-Game Connection Citadel:Forge with Fire server configurations Multipliers XP Rates Isle of Siptah Maps Creative Mode Conan Exiles Mod Mods Installation Day of Defeat Source Custom Maps Server Messages dayz standalone DSZA Launcher Ban Players Item Spawns Login Logout Gameplay Settings Installing Community Online Tools Installing Mods Installing CF Admin Tools Contaminated Areas Day Time Settings Day Time Night Time Acceleration Night Mode Deer Isle Expansion Map Mod Map Installation Change the Weather DayZ Weather Weather Snow Loadouts Player Loadouts dayz admin How to become an Admin Don't Starve Together how to connect Cluster Token Token Generation Generate Server Token Troubleshooting Guide Server not showing Delete Data Delete World Delete Save Caves Caves Setup Cluster Server Clustering Cave Server New Reign Beta Expansion DST DST Upload Save File Uploading Local Save File Server not starting Troubleshooting Console Commands Custom World Generate World ECO How to connect Eco Joining server

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Choose Currency

£ GBP
$ USD
€ EUR

Generate Password

Please enter a number between 8 and 64 for the password length

AA Game Hosting is a Game Hosting Company, we offer game servers, Voice servers and Web hosting which we support 24/7 by a team of technical professionals and support staff,we aim to provide the best game hosting in the industry news, focusing on the very best games, we only utilise high performance hardware and the best networks avaliable.

HOSTING SERVICES
  • Cloud Web Hosting
  • Game Server Hosting
  • Minecraft Server Hosting
  • Voice Server Hosting
  • WEB HOSTING
  • Personal Webhosting
  • Community Webhosting
  • Cloud Webhosting
  • INFORMATION
  • About us
  • Privacy Policy
  • Terms of Service
  • Payment Options
  • ACCESS
  • Web Control Panel
  • Game Control Panel
  • Support
  • Contact Us

    • Twitter
       
      Facebook

    AA Game Hosting

    © 2024 AA Game Hosting ® All Rights Reserved.