Sons of The Forest Admin Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
Luke (talk | contribs)
No edit summary
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
To enable console commands for your server, you will need to access the configuration file via [[FTP Access|FTP]] to do so. To edit/upload/save/delete files via FTP, use the following method:
{{#seo:
|title=Sons of the Forest Admin Commands: Owners, Kick and Ban
|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 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 the game server control panel.<br> Download link for WinSCP here: http://winscp.net/eng/download.php
#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 Server.cfg , 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 two slashes 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 enable cheats for your server, you will need to add a new line at the bottom of the file.<br>'''allowCheats on'''
#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 control panel. (using the green button will overwrite your change)
#Save the file, upload it, and click the Start button at the top of the Game Server page.
#Start up the Forest game on your own computer.
#Start up Sons of the Forest on your own computer.
#Once you are at the main menu, type in the following: developermodeon.<br>Note: You will not see any indicator that you typed this in correctly.
#To test if this works, press the F1 button. If you see $> toggleworkscheduler in the upper left corner, you did this correctly. Press F1 again.
#Find your server and connect to it.
#Find your server and connect to it.
#At the login screen, type in the admin password, which can be found on the control panel.
#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.
#When you are in the game, press F1. You will see $> toggleworkscheduler in the upper left corner. You can now type in cheat commands.
If you don't see the admin options on the '''Players''' page, check that your Steam ID is in the ownerswhitelist.txt file.
If you do not see the input prompt when you press F1, you will need to check the Server.cfg file to see if your addition was overwritten.
==Command list==
==Command List==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
|-
|-
| '''/help''' || Provides you with a help menu of all the known commands.
| '''RESTART''' button on the Game Server page || Restarts the server.
|-
|-
| '''/save''' (slot number 1-5) || Saves the game on the chosen slot number. Be careful as it may save over another game in your dedicated server save folder.
| '''STOP''' button on the Game Server page || Shuts down the server.
|-
|-
| '''/restart''' || Restarts the server.
| Ban, on the pause menu's '''Players''' page || Bans the user.
|-
|-
| '''/shutdown''' || Shuts down the server.
| Kick, on the pause menu's '''Players''' page || Kicks the user.
|-
|-
| '''/ban''' (steam id) || Bans the user.
| '''"Gameplay.TreeRegrowth"''' in dedicatedserver.cfg || Regrow cut down trees when sleeping. Options are true or false.
|-
|-
| '''/kick''' (steam id) || Kicks the user.
| '''"Structure.Damage"''' in dedicatedserver.cfg || Allow building destruction. Options are true or false.
|-
| '''/treeregrowmode''' || Regrow cut down trees when sleeping. Options are treeRegrowMode on or treeRegrowMode off.
|-
| '''/allowbuildingdestruction''' || Allow building destruction. Options are allowBuildingDestruction on or allowBuildingDestruction off.
|-
| '''/allowenemiescreative''' || Allow enemies in creative games. Options are allowEnemiesCreativeMode on or allowEnemiesCreativeMode off.
|}
|}
[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.