Skip to main content

Adding an admin and command list (world modifiers)

Game version notice

This guide may have been written for an earlier version of Valheim. Some of the information (file paths, panel option names, commands) may no longer match the current state of the game.

A short guide on how to grant admin permissions on your Valheim server.

  1. First, we need to open the adminlist.txt file, which we will find by going into the directories: .config/unity3d/IronGate/Valheim/ image
  2. In the adminlist.txt file we enter the admin's steamID64. You can find the SteamID64 using steamid.io, or directly from the game (the F2 key while on the server).

image
3. After correctly adding the steamID64 and saving the adminlist.txt file, you need to restart the server. image

Admin command list

  • help - list of commands
  • kick [name/ip/userID] - kick a player
  • ban [name/ip/userID] - ban a player
  • unban [name/ip/userID] - unban a player
  • banned - list of banned players
  • ping - check ping
  • lodbias [number] - render distance
  • info - system information

World modifiers

As an admin you can now set world modifiers in the game:

ModifierValueCommand
CombatVery easysetworldmodifier combat veryeasy
Easysetworldmodifier combat easy
Normal-
Hardsetworldmodifier combat hard
Very hardsetworldmodifier combat veryhard
Death penaltyCasualsetworldmodifier deathpenalty casual
Very easysetworldmodifier deathpenalty veryeasy
Easysetworldmodifier deathpenalty easy
Normal-
Hardsetworldmodifier deathpenalty hard
Hardcoresetworldmodifier deathpenalty hardcore
Resource rate.5xsetworldmodifier resources muchless
.75xsetworldmodifier resources less
Normal-
1.5xsetworldmodifier resources more
2xsetworldmodifier resources muchmore
3xsetworldmodifier resources most
Raid frequencyNonesetworldmodifier raids none
Much lesssetworldmodifier raids muchless
Lesssetworldmodifier raids less
Normal-
Moresetworldmodifier raids more
Much moresetworldmodifier raids muchmore
PortalsPortal itemssetworldmodifier portals casual
Normal-
No boss portalssetworldmodifier portals hard
No portalssetworldmodifier portals veryhard
tip

To reset all modifiers at once, use the setworldpreset default command.

There are also "world keys" you can set to enable or disable specific switches. To use them, we first need to run the devcommands command, which should return true:

World modifierMenu valuedevcommand
No build costOnsetkey nobuildcost
Offremovekey nobuildcost
Passive hostile creaturesOnsetkey passivemobs
Offremovekey passivemobs
Player-based raidsOnsetkey playerevents
Offremovekey playerevents
No mapOnsetkey nomap
Offremovekey nomap