Sons of The Forest 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 3: Line 3:
|description=How to make yourself an owner on a Sons of the Forest dedicated server, then kick, ban and promote players from the admin menu in the game.
|description=How to make yourself an owner on a Sons of the Forest dedicated server, then kick, ban and promote players from the admin menu in the game.
}}
}}
To enable admin commands for your server, you will need to add your Steam ID to the owners file via [[FTP Access|FTP]], or type it in the '''Admin UID''' field on your server's page and click '''Save Settings & Restart'''.
To turn on admin commands, add your Steam ID to the owners file over [[FTP Access|FTP]]. Or type it in the '''Admin UID''' field on the Game Server page and click '''Save Settings & Restart'''.


#Stop your server from the panel.
#Stop your server from the Game Server page.
#Log in to FTP using WinSCP (a free FTP software) using the connection details found in the "FTP Details" section of your server's page, with '''TLS/SSL Explicit encryption''' on.<br> Download link for WinSCP here: [https://winscp.net/eng/download.php WinSCP download page]
#Log in over FTP with WinSCP, a free FTP program. Use the login details in the "FTP Details" section of the Game Server page, with '''TLS/SSL Explicit encryption''' on.<br>Download WinSCP: [https://winscp.net/eng/download.php WinSCP download page]
#Navigate to the directory you wish to upload or edit a file.<br>The file is ownerswhitelist.txt, which is located at the first folder.
#Find the file ownerswhitelist.txt in the first folder.
#Open up the file using a text editor like Notepad or Notepad++.<br> If you are not familiar with configuration files, any line starting with # is ignored by the program.<br># This is a comment and will not be read by a file
#Open the file in a text editor like Notepad or Notepad++.<br>The server ignores any line that starts with #, like this one:<br># This is a comment and will not be read by a file
#To make yourself an owner of your server, you will need to add a new line at the bottom of the file with your 17-digit Steam ID.<br>'''7656119XXXXXXXXXX'''
#To make yourself an owner, add a new line at the bottom of the file with your 17-digit Steam ID.<br>'''7656119XXXXXXXXXX'''
#After editing/uploading/deleting your files in the proper directories, press the Start button at the top of your server's page.
#Save the file, upload it, and click the Start button at the top of the Game Server page.
#Start up Sons of the Forest on your own computer.
#Start up Sons of the Forest on your own computer.
#Find your server and connect to it.
#Find your server and connect to it.
#When you are in the game, press '''Esc''' and open '''Players''' in the pause menu. You will see the admin options for each player. You can now kick, ban and promote players.
#In the game, press '''Esc''' and open '''Players''' in the pause menu. Each player has admin options, so you can kick, ban and promote players.
If you do not see the admin options on the '''Players''' page, you will need to check the ownerswhitelist.txt file to see if your Steam ID is in it.
If you don't see the admin options on the '''Players''' page, check that your Steam ID is in the ownerswhitelist.txt file.
==Command List==
==Command list==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
|-
|-
| '''RESTART''' button on your server's page || Restarts the server.
| '''RESTART''' button on the Game Server page || Restarts the server.
|-
|-
| '''STOP''' button on your server's page || Shuts down the server.
| '''STOP''' button on the Game Server page || Shuts down the server.
|-
|-
| Ban, on the pause menu's '''Players''' page || Bans the user.
| Ban, on the pause menu's '''Players''' page || Bans the user.
Line 32: Line 32:
|}
|}


You can [https://www.survivalservers.com/services/game_servers/sons_of_the_forest/ host your own Sons Of The Forest server] with Survival Servers with instant setup.
[https://www.survivalservers.com/services/game_servers/sons_of_the_forest/ Rent a Sons of the Forest server] from Survival Servers with instant setup.

Latest revision as of 09:06, 17 November 2026

To turn on admin commands, add your Steam ID to the owners file over FTP. Or type it in the Admin UID field on the Game Server page and click Save Settings & Restart.

  1. Stop your server from the Game Server page.
  2. Log in over FTP with WinSCP, a free FTP program. Use the login details in the "FTP Details" section of the Game Server page, with TLS/SSL Explicit encryption on.
    Download WinSCP: WinSCP download page
  3. Find the file ownerswhitelist.txt in the first folder.
  4. Open the file in a text editor like Notepad or Notepad++.
    The server ignores any line that starts with #, like this one:
    # This is a comment and will not be read by a file
  5. To make yourself an owner, add a new line at the bottom of the file with your 17-digit Steam ID.
    7656119XXXXXXXXXX
  6. Save the file, upload it, and click the Start button at the top of the Game Server page.
  7. Start up Sons of the Forest on your own computer.
  8. Find your server and connect to it.
  9. In the game, press Esc and open Players in the pause menu. Each player has admin options, so you can kick, ban and promote players.

If you don't see the admin options on the Players page, check that your Steam ID is in the ownerswhitelist.txt file.

Command list

Command Description
RESTART button on the Game Server page Restarts the server.
STOP button on the Game Server page Shuts down the server.
Ban, on the pause menu's Players page Bans the user.
Kick, on the pause menu's Players page Kicks the user.
"Gameplay.TreeRegrowth" in dedicatedserver.cfg Regrow cut down trees when sleeping. Options are true or false.
"Structure.Damage" in dedicatedserver.cfg Allow building destruction. Options are true or false.

Rent a Sons of the Forest server from Survival Servers with instant setup.