Difference between revisions of "Admin Commands for Don't Starve Together"

From Nitradopedia EN
Jump to: navigation, search
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{ADS-dst}}
 
{{ADS-dst}}
  
On this page we show you the commands you can use on Dont Starve Together:
+
On this page, show you the commands you can use on Don't Starve Together:
  
 
== Open the Console ==
 
== Open the Console ==
Line 7: Line 7:
 
To use commands, press the "~" key in your game. This opens the game console, where you can enter the commands.
 
To use commands, press the "~" key in your game. This opens the game console, where you can enter the commands.
  
== Simple commands ==
+
== Simple Commands ==
* '''Spawn prefab'''
+
{| class="wikitable"
c_spawn("prefab",amount)
+
|+Simple Commands
DebugSpawn imporved ("prefab"), generates the amount of "prefab" selected under the mouse pointer.
+
!Name
* '''Dive item'''
+
!Description
c_give("prefab",amount)
+
!Syntax
Generates a quantity of selected "pre-made parts" in your inventory. It only works with backpacks and items that can be stored in inventory.
+
|-
* '''Go Adventuring'''
+
|'''Spawn prefab'''
c_goadventuring()
+
|Improved DebugSpawn("prefab"), spawns amount of selected "prefab" under the mouse cursor.
Gives the player a set of starting items.
+
|c_spawn("prefab",amount)
* '''Scenario'''
+
|-
c_doscenario(scenario)
+
|'''Give item'''
Apply a scenario script to the selection and run it.
+
|Generates a quantity of selected "pre-made parts" in your inventory. It only works with backpacks and items that can be stored in inventory.
* '''Set''' '''Your''' '''Health'''
+
|c_give("prefab",amount)
c_sethea​lth(percent)
+
|-
Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
+
|'''Go Adventuring'''
* '''Set Your Sanity'''
+
|Gives the player a set of starting items.
c_setsanit​y(percent)
+
|c_goadventuring()
Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
+
|-
* '''Set''' '''Your''' '''Hunger'''
+
|'''Scenario'''
c_sethunger(pe​rcent)
+
|Apply a scenario script to the selection and run it.
Set your hunger to a selected percentage. Note: use fractional numbers 0.90 = 90%.
+
|c_doscenario(scenario)
* '''Set Your Moisture'''
+
|-
c_setmoisture(pe​rcent)
+
|'''Set''' '''Your''' '''Health'''
Adjust its humidity to a selected percentage. Note: use fractional numbers 0.90 = 90%.
+
|Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
* '''Temperature'''
+
|c_sethea​lth(percent)
c_settemperature(degrees)
+
|-
Set your temperature to a selected percentage. Note: use fractional numbers 0.90 = 90%.
+
|'''Set Your Sanity'''
* '''God Mode'''<span id="c_godmode"></span>
+
|Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%.
c_godmode()
+
|c_setsanit​y(percent)
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 godmode when he is resurrected). To disable Godmode, use the command again.
+
|-
* '''Super''' '''God Mode'''
+
|'''Set''' '''Your''' '''Hunger'''
c_supergodmode()
+
|Set your hunger to a selected percentage. Note: use fractional numbers 0.90 = 90%.
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 Godmode, use the command again.
+
|c_sethunger(pe​rcent)
* '''Maintain Your Health'''
+
|-
c_maintainhealth(ThePlayer)
+
|'''Set Your Moisture'''
Similar to Supergod mode, but constantly regenerating your health. To cancel the process, enter c_cancelmaintasks (ThePlayer).
+
|Adjust its humidity to a selected percentage. Note: use fractional numbers 0.90 = 90%.
* '''Maintain Your Sanity'''
+
|c_setmoisture(pe​rcent)
c_maintainsanity(ThePlayer)
+
|-
Similar to Supergod mode, but constantly regenerating your mind. To cancel the process, enter c_cancelmaintasks (ThePlayer).
+
|'''Temperature'''
* '''Maintain Your Hunger'''
+
|Set your temperature to a selected percentage. Note: use fractional numbers 0.90 = 90%.
c_maintainhunger(ThePlayer)
+
|c_settemperature(degrees)
Similar to Supergod mode, but constantly regenerates your hunger. To cancel the process, enter c_cancelmaintasks (ThePlayer).
+
|-
* '''Maintain Your Temperature'''
+
|'''God Mode'''
c_maintaintemperature(ThePlayer)
+
|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 godmode when he is resurrected). To disable Godmode, use the command again.
Similar to Supergod mode but constantly regenerating your temperature. To cancel the process, enter c_cancelmaintasks (ThePlayer).
+
|c_godmode()
* '''Maintain Your Moisture'''
+
|-
c_maintainmoisture(ThePlayer)
+
|'''Super''' '''God Mode'''
Similar to Supergod mode, but constantly regenerating your moisture. To cancel the process, enter c_cancelmaintasks (ThePlayer).
+
|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 Godmode, use the command again.
* '''Maintain All'''
+
|c_supergodmode()
c_maintainall(ThePlayer)
+
|-
Similar to Supergod mode, but constantly regenerates all stats. To cancel the process, enter c_cancelmaintasks (ThePlayer).
+
|'''Maintain Your Health'''
* '''Mob Invisibility'''
+
|Similar to Supergod mode, but constantly regenerating your health. To cancel the process, enter '''c_cancelmaintasks (ThePlayer)'''.
c_makeinvisible()
+
|c_maintainhealth(ThePlayer)
Prevent mobs from targeting the player in combat. It does not work in all circumstances.
+
|-
* '''Set Your Running Speed'''
+
|'''Maintain Your Sanity'''
c_speedmult(multiplier)
+
|Similar to Supergod mode, but constantly regenerating your mind. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
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.
+
|c_maintainsanity(ThePlayer)
 +
|-
 +
|'''Maintain Your Hunger'''
 +
|Similar to Supergod mode, but constantly regenerates your hunger. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 +
|c_maintainhunger(ThePlayer)
 +
|-
 +
|'''Maintain Your Temperature'''
 +
|Similar to Supergod mode but constantly regenerating your temperature. To cancel the process, enter '''c_cancelmaintasks (ThePlayer)'''
 +
|c_maintaintemperature(ThePlayer)
 +
|-
 +
|'''Maintain Your Moisture'''
 +
|Similar to Supergod mode, but constantly regenerating your moisture. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 +
|c_maintainmoisture(ThePlayer)
 +
|-
 +
|'''Maintain All'''
 +
|Similar to Supergod mode, but constantly regenerates all stats. To cancel the process, enter '''c_cancelmaintasks (ThePlayer).'''
 +
|c_maintainall(ThePlayer)
 +
|-
 +
|'''Mob Invisibility'''
 +
|Prevent mobs from targeting the player in combat. It does not work in all circumstances. i.e boss fights
 +
|c_makeinvisible()
 +
|-
 +
|'''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.
 +
|c_speedmult(multiplier)
 +
|}
  
 +
== Player Commands ==
 +
<span id="c_godmode"></span><span id="c_godmode"></span>
 +
{| class="wikitable"
 +
|+Player Commands
 +
!Name
 +
!Description
 +
!Syntax
 +
|-
 +
|'''Hide and show HUD'''
 +
|Hide or show (after hiding) the full HUD of the game.
 +
|GetPlayer().HUD:Hide()
 +
GetPlayer().HUD:Show()
 +
|-
 +
|'''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.builder:GiveAllRecipes()
 +
|-
 +
|'''Maximum Health'''
 +
|Change the Maximum Health of your Characters
 +
|​GetPlayer().components.health:SetMaxHealth(''value'')
 +
|-
 +
|'''Maximum sanity'''
 +
|Change the Maximum Sanity of your Characters
 +
|​GetPlayer().components.sanity:SetMax(''value'')
 +
|-
 +
|'''Maximum hunger'''
 +
|Change the Maximum Hunger of your Characters
 +
|GetPlayer().components.hunger:SetMax(''value'')
 +
|-
 +
|'''Pause hunger'''
 +
|Your Characters won't starve anymore.
 +
|GetPlayer().components.hunger:Pause(true)
 +
|-
 +
|'''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.'''
 +
|c_listallplayers()
 +
|-
 +
|'''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 ThePlayer.
 +
|AllPlayers[number]
 +
|-
 +
|'''Apply a command to all players'''
 +
|Replace command with another command, using "v" instead of AllPlayers[number]. For example, "for k,v in pairs(AllPlayers) do c_move(v) end" will move all players to the mouse position.
 +
|for k,v in pairs(AllPlayers) do command end
 +
|-
 +
|'''Kill a player'''
 +
|They won't like it
 +
|AllPlayers[number]:PushEvent('death')
 +
|-
 +
|'''Resurrect a player'''
 +
|They will still resent you
 +
|AllPlayers[number]:PushEvent('respawnfromghost')
 +
|-
 +
|'''Give creative mode to a player'''
 +
|Gives Creative Mode to a player in specific
 +
|AllPlayers[number].components.builder:GiveAllRecipes(
 +
|-
 +
|'''Teleport to a player'''
 +
|Teleport to a player
 +
|c_goto(AllPlayers[number])
 +
|-
 +
|'''Werebeaver'''
 +
|Turn Woodie into the Werebeaver.
 +
|GetPlayer().components.beaverness:SetPercent(1)
 +
|}
 +
 +
== World Commands ==
 +
{| class="wikitable"
 +
|+World Commands
 +
!Name
 +
!Description
 +
!Syntax
 +
|-
 +
|'''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, and each subsequent execution of the same command will transport the player from entity to entity in the order they were generated in the world.
 +
|'''c_gonext("''prefab''")'''
 +
|-
 +
|'''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.
 +
|'''ConsoleWorldEntityUnderMouse():Remove()'''
 +
c_select():Remove()
 +
|-
 +
|'''Delete All'''
 +
|After pressing enter, it deletes every instance of whatever item prefab is entered. Useful for long-running servers with lots of clutter.
 +
|'''for k,v in pairs(Ents) do if v.prefab == "''prefab''" then v:Remove() end end'''
 +
|-
 +
|'''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 time skip. Use c_skip(x) to skip x amount
 +
|​'''TheWorld:PushEvent("ms_nextcycle")'''
 +
|-
 +
|'''Skip Day'''
 +
|
 +
|'''c_skip(num)'''
 +
|-
 +
|'''Skip time'''
 +
|
 +
|'''TheWorld.net.components.clock:OnUpdate(16*30*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.
 +
|'''LongUpdate(X)'''
 +
|-
 +
|'''Speed up simulation'''
 +
|Speed up the simulation of world. some events are determined by time past in game, and hence can be triggered to happen earlier through this speed up. Skipping would not bring forward those events.
 +
|'''c_speedup()'''
 +
|-
 +
|'''Speed up simulation*'''
 +
|Set the time scale of the simulation to a specific value X. The normal time scale corresponds to the value 1. The value 0 pauses the game. Note that console can not be used while game is paused preventing to remove pause.
 +
|'''TheSim:SetTimeScale(X)'''
 +
|-
 +
|'''Skip phase'''
 +
|Skips the current phase
 +
|'''TheWorld:PushEvent("ms_nextphase")'''
 +
|-
 +
|'''Set segments'''
 +
|Allows to set duration for day, dusk and night (total value must '''NOT''' exceed 16)
 +
|'''TheWorld:PushEvent("ms_setclocksegs", {day=x,dusk=y,night=z})'''
 +
|-
 +
|'''Set season segments'''
 +
|Allows to set the duration for the day, dusk and night by season (total values must '''NOT'''  exceed 16)
 +
|​'''<nowiki>TheWorld:PushEvent("ms_setseasonclocksegs", {summer={day=sx,dusk=sy,night=sz}, winter={day=wx,dusk=wy,night=wz}})</nowiki>'''
 +
|-
 +
|'''Set season lengths'''
 +
|Allows to set the duration of each season
 +
|'''TheWorld:PushEvent("ms_setseasonlength", {season="summer", length=15})'''
 +
|-
 +
|'''Start Spring'''
 +
|Set season to spring
 +
|'''TheWorld:PushEvent("ms_setseason", "spring")'''
 +
|-
 +
|'''Start Summer'''
 +
|Set season to summer
 +
|'''TheWorld:PushEvent("ms_setseason", "summer")'''
 +
|-
 +
|'''Start Autumn'''
 +
|Set season to autumn
 +
|'''TheWorld:PushEvent("ms_setseason", "autumn")'''
 +
|-
 +
|'''Start Winter'''
 +
|Set season to winter
 +
|'''TheWorld:PushEvent("ms_setseason", "summer")'''
 +
|-
 +
|'''Start Rain'''
 +
|Start raining
 +
|'''TheWorld:PushEvent("ms_forceprecipitation")'''
 +
|-
 +
|'''Do Lightning Strike'''
 +
|Lightning strike on mouse cursor. Will hit lightning rod instead if there is one near
 +
|'''TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition())'''
 +
|-
 +
|'''Meteor Strike'''
 +
|Meteor strike on mouse cursor. Spawns different kind of rocks randomly. (This might crash the game)
 +
|'''c_spawn("shadowmeteor", 1)'''
 +
|-
 +
|'''Activate all Events'''
 +
|Activates all Events on the same time. Doesnt work if in world gen the events section is set to Auto.
 +
|'''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'''
 +
|}
 +
 +
== Server Commands ==
 +
{| class="wikitable"
 +
|+Server commands
 +
!Name
 +
!Description
 +
!Syntax
 +
|-
 +
|'''Kick Player'''
 +
|Kicks a player out of the server
 +
|'''TheNet:Kick(userid)'''
 +
|-
 +
|'''Ban Player'''
 +
|Kicks and denies access to the server
 +
|'''TheNet:Kick(userid)'''
 +
|-
 +
|'''Regenerate a world shard'''
 +
|Regenerates specified items in a shard.
 +
|'''c_regenerateshard()'''
 +
|-
 +
|'''Enable/Disable new player joining'''
 +
|Setting it to true is the default behavior (people can join). Setting it to false prevents anyone from joining.
 +
|'''TheNet:SetAllowIncomingConnections( true / false )'''
 +
|-
 +
|'''Make a server announcement'''
 +
|This allows you to announce server shutdowns/restarts so players do not just get disconnected without warning.
 +
|'''c_announce("announcement")'''
 +
|}
 
[[Category: Don't Starve Together]]
 
[[Category: Don't Starve Together]]
 +
[[Category: Issue dontstarve]]
 +
[[Category: Characteristic configuration]]
 +
[[es:Comandos de administrador para Don't Starve Together]]

Latest revision as of 05:42, 7 October 2021

Dontstarve wiki.jpg
Rent your own prepaid Don't Starve server at nitrado.net

On this page, show you the commands you can use on Don't Starve Together:

Open the Console

To use commands, press the "~" key in your game. This opens the game console, where you can enter the commands.

Simple Commands

Simple Commands
Name Description Syntax
Spawn prefab Improved DebugSpawn("prefab"), spawns amount of selected "prefab" under the mouse cursor. c_spawn("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_give("prefab",amount)
Go Adventuring Gives the player a set of starting items. c_goadventuring()
Scenario Apply a scenario script to the selection and run it. c_doscenario(scenario)
Set Your Health Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_sethea​lth(percent)
Set Your Sanity Set your health to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_setsanit​y(percent)
Set Your Hunger Set your hunger to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_sethunger(pe​rcent)
Set Your Moisture Adjust its humidity to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_setmoisture(pe​rcent)
Temperature Set your temperature to a selected percentage. Note: use fractional numbers 0.90 = 90%. c_settemperature(degrees)
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 godmode when he is resurrected). To disable Godmode, use the command again. c_godmode()
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 Godmode, use the command again. c_supergodmode()
Maintain Your Health Similar to Supergod mode, but constantly regenerating your health. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainhealth(ThePlayer)
Maintain Your Sanity Similar to Supergod mode, but constantly regenerating your mind. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainsanity(ThePlayer)
Maintain Your Hunger Similar to Supergod mode, but constantly regenerates your hunger. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainhunger(ThePlayer)
Maintain Your Temperature Similar to Supergod mode but constantly regenerating your temperature. To cancel the process, enter c_cancelmaintasks (ThePlayer) c_maintaintemperature(ThePlayer)
Maintain Your Moisture Similar to Supergod mode, but constantly regenerating your moisture. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainmoisture(ThePlayer)
Maintain All Similar to Supergod mode, but constantly regenerates all stats. To cancel the process, enter c_cancelmaintasks (ThePlayer). c_maintainall(ThePlayer)
Mob Invisibility Prevent mobs from targeting the player in combat. It does not work in all circumstances. i.e boss fights c_makeinvisible()
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. c_speedmult(multiplier)

Player Commands

Player Commands
Name Description Syntax
Hide and show HUD Hide or show (after hiding) the full HUD of the game. GetPlayer().HUD:Hide()

GetPlayer().HUD:Show()

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.builder:GiveAllRecipes()
Maximum Health Change the Maximum Health of your Characters ​GetPlayer().components.health:SetMaxHealth(value)
Maximum sanity Change the Maximum Sanity of your Characters ​GetPlayer().components.sanity:SetMax(value)
Maximum hunger Change the Maximum Hunger of your Characters GetPlayer().components.hunger:SetMax(value)
Pause hunger Your Characters won't starve anymore. GetPlayer().components.hunger:Pause(true)
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. c_listallplayers()
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 ThePlayer. AllPlayers[number]
Apply a command to all players Replace command with another command, using "v" instead of AllPlayers[number]. For example, "for k,v in pairs(AllPlayers) do c_move(v) end" will move all players to the mouse position. for k,v in pairs(AllPlayers) do command end
Kill a player They won't like it AllPlayers[number]:PushEvent('death')
Resurrect a player They will still resent you AllPlayers[number]:PushEvent('respawnfromghost')
Give creative mode to a player Gives Creative Mode to a player in specific AllPlayers[number].components.builder:GiveAllRecipes(
Teleport to a player Teleport to a player c_goto(AllPlayers[number])
Werebeaver Turn Woodie into the Werebeaver. GetPlayer().components.beaverness:SetPercent(1)

World Commands

World Commands
Name Description Syntax
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, and each subsequent execution of the same command will transport the player from entity to entity in the order they were generated in the world. c_gonext("prefab")
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. ConsoleWorldEntityUnderMouse():Remove()

c_select():Remove()

Delete All After pressing enter, it deletes every instance of whatever item prefab is entered. Useful for long-running servers with lots of clutter. for k,v in pairs(Ents) do if v.prefab == "prefab" then v:Remove() end end
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 time skip. Use c_skip(x) to skip x amount TheWorld:PushEvent("ms_nextcycle")
Skip Day c_skip(num)
Skip time TheWorld.net.components.clock:OnUpdate(16*30*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.

LongUpdate(X)
Speed up simulation Speed up the simulation of world. some events are determined by time past in game, and hence can be triggered to happen earlier through this speed up. Skipping would not bring forward those events. c_speedup()
Speed up simulation* Set the time scale of the simulation to a specific value X. The normal time scale corresponds to the value 1. The value 0 pauses the game. Note that console can not be used while game is paused preventing to remove pause. TheSim:SetTimeScale(X)
Skip phase Skips the current phase TheWorld:PushEvent("ms_nextphase")
Set segments Allows to set duration for day, dusk and night (total value must NOT exceed 16) TheWorld:PushEvent("ms_setclocksegs", {day=x,dusk=y,night=z})
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_setseasonclocksegs", {summer={day=sx,dusk=sy,night=sz}, winter={day=wx,dusk=wy,night=wz}})
Set season lengths Allows to set the duration of each season TheWorld:PushEvent("ms_setseasonlength", {season="summer", length=15})
Start Spring Set season to spring TheWorld:PushEvent("ms_setseason", "spring")
Start Summer Set season to summer TheWorld:PushEvent("ms_setseason", "summer")
Start Autumn Set season to autumn TheWorld:PushEvent("ms_setseason", "autumn")
Start Winter Set season to winter TheWorld:PushEvent("ms_setseason", "summer")
Start Rain Start raining TheWorld:PushEvent("ms_forceprecipitation")
Do Lightning Strike Lightning strike on mouse cursor. Will hit lightning rod instead if there is one near TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition())
Meteor Strike Meteor strike on mouse cursor. Spawns different kind of rocks randomly. (This might crash the game) c_spawn("shadowmeteor", 1)
Activate all Events Activates all Events on the same time. Doesnt work if in world gen the events section is set to Auto. 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

Server Commands

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