Hurtworld Admin Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
Luke (talk | contribs)
[wiki:wiki-operator] Fixes from the review of the rewording: claims, example addresses, names and wording (approved by Ryan, Nov 19)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Running Server Commands ==
{{#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.}}
Press F1 to open the console.
== 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 ==
== Adding admins ==


'''1.''' Using [[FTP Access|FTP]], open '''autoexe.cfg'''.<br>
'''1.''' On the Game Server page in the Command Center, check the "Custom Launch Parameters" box.<br>
'''2.''' Using '''https://steamid.io/''', collect the required Steam 64 bit ID.<br>
'''2.''' Find the 17-digit Steam 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 autoexe.cfg.<br><br>
'''3.''' Add one or more Steam 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>
'''addadmin 123456789'''<br><br>
'''host YOURPORT;addadmin YOURSTEAM64ID'''<br><br>
"Multiple Admins"<br>
"Multiple admins"<br>


'''addadmin 123456789'''<br>
'''host YOURPORT''';'''addadmin YOURSTEAM64ID''';'''addadmin FRIENDSTEAM64ID'''
'''addadmin 466774535'''


== 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.
|-
| '''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<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). 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==
==Save management==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
|-
|-
| '''autobackupinterval <seconds>''' || Sets how often the server should backup its autosave.
| '''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.
|}
|}
[https://www.survivalservers.com/services/game_servers/hurtworld/ Rent a Hurtworld server] from Survival Servers and be online in minutes.

Latest revision as of 12:17, 19 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 17-digit Steam ID you need with steamid.io.
3. Add one or more Steam 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.