Hurtworld Admin Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
Line 1: Line 1:
{{#seo:|title=Hurtworld Admin Commands: Add Admins, Kick, Teleport, Saves|description=Hurtworld admin commands: add admins with addadmin, run commands in the F1 console, kick players, teleport, spawn objects, set loot rules and save.}}
{{#seo:|title=Hurtworld Admin Commands: Add Admins, Kick, Teleport, Saves|description=Hurtworld admin commands: add admins with addadmin, run commands in the F1 console, kick players, teleport, spawn objects, set loot rules and save.}}
== Running Server Commands ==
== Running server commands ==
Press F1 to open the console in game or add them in your Command Center under "Custom Launch Parameters" (Some commands may need to be ran in game). In the console, type '''rcon''' in front of commands that change the server, such as '''rcon kick''' and '''rcon creativemode 1'''.
Press F1 to open the console in game, or add commands in the Command Center under "Custom Launch Parameters" (some commands may need to be run in game). In the console, type '''rcon''' in front of commands that change the server, such as '''rcon kick''' and '''rcon creativemode 1'''.


== Adding Admins ==
== Adding admins ==


'''1.''' In your Command Center, check the "Custom Launch Parameters" box on your server's page.<br>
'''1.''' On the Game Server page in the Command Center, check the "Custom Launch Parameters" box.<br>
'''2.''' Using '''[https://steamid.io/ steamid.io]''', collect the required Steam 64 bit ID.<br>
'''2.''' Find the Steam64 ID you need with '''[https://steamid.io/ steamid.io]'''.<br>
'''3.''' Using "'''addadmin <steam64id>'''", add the single or multiple Steam 64 bit IDs to the '''Launch Parameters Line''' (TOOLS > '''Launch Params'''). The line must start with '''host''' and your server's port (the number after the colon in the IP row), or the server will not start. Then click '''Save Settings & Restart'''.<br><br>
'''3.''' Add one or more Steam64 IDs with "'''addadmin <steam64id>'''" to the '''Launch Parameters Line''' (TOOLS > '''Launch Params'''). The line must start with '''host''' and your server's port (the number after the colon in the IP row), or the server won't start. Then click '''Save Settings & Restart'''.<br><br>


"Single Admin"<br>
"Single admin"<br>
'''host YOURPORT;addadmin YOURSTEAM64ID'''<br><br>
'''host YOURPORT;addadmin YOURSTEAM64ID'''<br><br>
"Multiple Admins"<br>
"Multiple admins"<br>


'''host YOURPORT''';'''addadmin YOURSTEAM64ID''';'''addadmin FRIENDSTEAM64ID'''
'''host YOURPORT''';'''addadmin YOURSTEAM64ID''';'''addadmin FRIENDSTEAM64ID'''


== Admin Commands ==
== Admin commands ==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
|-
|-
| '''kill''' || USE WITH CAUTION. Commit suicide.
| '''kill''' || Use with caution. Kills your character.
|-
|-
| '''itemlist''' || List all items and their codes.
| '''itemlist''' || List all items and their codes.
Line 32: Line 32:
* Destroy everything (playerlootmode 6)
* Destroy everything (playerlootmode 6)
|-
|-
| '''spawncooldown<br> <speed> <value>''' || Adjust the spawn cooldown. The <speed> parameter is how quickly spawn times fall back down to 10 seconds. The <value> is how much the spawn time increases upon death.
| '''spawncooldown<br> <speed> <value>''' || Adjust the spawn cooldown. The <speed> value is how quickly spawn times fall back to 10 seconds. The <value> is how much the spawn time goes up on each death.
|-
|-
| '''creativemode <value>''' || Turn creative mode on and off (free build). Value as 0 for off, 1 for on.
| '''creativemode <value>''' || Turn creative mode on and off (free build). Use 0 for off, 1 for on.
|-
|-
| '''spawn <prefabname>''' || This will spawn any networked object 4 meters in front of you. Such as spawn sandstorm.
| '''spawn <prefabname>''' || Spawns any networked object 4 meters in front of you, for example spawn sandstorm.
|-
|-
| '''kick <steamid> <reason>''' || Kick a player, with a reason. Enter the player's Steam ID (you can see these with `serverstatus`) to identify them. It matches the start of the ID, so type the whole ID.
| '''kick <steamid> <reason>''' || Kick a player, with a reason. Enter the player's Steam ID (you can see these with `serverstatus`) to identify them. It matches the start of the ID, so type the whole ID.
|-
|-
| '''teleport <who> <toplayer>''' || Specified by full name, will take player A directly to player B.
| '''teleport <who> <toplayer>''' || Takes player A straight to player B. Use full names.
|}
|}


==Save Management==
==Save management==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
Line 49: Line 49:
| '''autosaveenabled <value>''' || Sets whether to autosave the server.
| '''autosaveenabled <value>''' || Sets whether to autosave the server.
|-
|-
| '''autobackupinterval <seconds>''' || Sets how often the server should backup its autosave.
| '''autobackupinterval <seconds>''' || Sets how often the server backs up its autosave.
|-
|-
| '''saveserver <saveName>''' || Save the server state to file, in the .exe directory. Can be loaded (see loadserver).
| '''saveserver <saveName>''' || Saves the server state to a file in the .exe folder. You can load it with loadserver.
|-
|-
| '''loadserver <saveName>''' || Additively load the server state from file, relative to the .exe directory.
| '''loadserver <saveName>''' || Loads a saved server state from a file (path relative to the .exe folder), adding to what's already there.
|}
|}


Don't have a server yet? [https://www.survivalservers.com/services/game_servers/hurtworld/ Rent a Hurtworld server] from Survival Servers and be online in minutes.
[https://www.survivalservers.com/services/game_servers/hurtworld/ Rent a Hurtworld server] from Survival Servers and be online in minutes.

Revision as of 08:59, 17 November 2026

Running server commands

Press F1 to open the console in game, or add commands in the Command Center under "Custom Launch Parameters" (some commands may need to be run in game). In the console, type rcon in front of commands that change the server, such as rcon kick and rcon creativemode 1.

Adding admins

1. On the Game Server page in the Command Center, check the "Custom Launch Parameters" box.
2. Find the Steam64 ID you need with steamid.io.
3. Add one or more Steam64 IDs with "addadmin <steam64id>" to the Launch Parameters Line (TOOLS > Launch Params). The line must start with host and your server's port (the number after the colon in the IP row), or the server won't start. Then click Save Settings & Restart.

"Single admin"
host YOURPORT;addadmin YOURSTEAM64ID

"Multiple admins"

host YOURPORT;addadmin YOURSTEAM64ID;addadmin FRIENDSTEAM64ID

Admin commands

Command Description
kill Use with caution. Kills your character.
itemlist List all items and their codes.
playerlootmode <value> Sets the player loot mode for the server.
  • Drop everything (playerlootmode 0, the default)
  • Drop backpack only (playerlootmode 1)
  • Drop backpack and 1 random item (playerlootmode 2)
  • Drop backpack and 2 random items (playerlootmode 3)
  • Drop backpack and 3 random items (playerlootmode 4)
  • Drop nothing ever (playerlootmode 5)
  • Destroy everything (playerlootmode 6)
spawncooldown
<speed> <value>
Adjust the spawn cooldown. The <speed> value is how quickly spawn times fall back to 10 seconds. The <value> is how much the spawn time goes up on each death.
creativemode <value> Turn creative mode on and off (free build). Use 0 for off, 1 for on.
spawn <prefabname> Spawns any networked object 4 meters in front of you, for example spawn sandstorm.
kick <steamid> <reason> Kick a player, with a reason. Enter the player's Steam ID (you can see these with `serverstatus`) to identify them. It matches the start of the ID, so type the whole ID.
teleport <who> <toplayer> Takes player A straight to player B. Use full names.

Save management

Command Description
autosaveenabled <value> Sets whether to autosave the server.
autobackupinterval <seconds> Sets how often the server backs up its autosave.
saveserver <saveName> Saves the server state to a file in the .exe folder. You can load it with loadserver.
loadserver <saveName> Loads a saved server state from a file (path relative to the .exe folder), adding to what's already there.

Rent a Hurtworld server from Survival Servers and be online in minutes.