When you make changes to the Commands.dat, the server must be restarted for the changes to go in effect. I was going to suggest just manually saving and then rebooting the server, but I don’t think that’s possible since RocketMod wasn’t installed.
This is my fault, as I didn’t think about it until now, but the manual save command is normally entered through the console and since the console code doesn’t have proper Linux support yet I don’t believe it’ll let you type save
into the console to save the server. It completely slipped my mind that manual saving takes place through the console, so I didn’t think to emphasize the importance of installing RocketMod.
I’m going to have to suggest installing RocketMod. I’m sorry, that’s completely just due to my own negligence.
The game doesn’t auto-save. However, RocketMod does allow for it (and since you’re using Linux, it is currently required if you wish to use the console, which is required for stuff like manually saving the server).
If I recall correctly, with RocketMod you can add the line <AutomaticSave Enabled="true" Interval="1800" />
to the Rocket.Unturned.config.xml file and it should auto-save. I would assume that the interval is in seconds, and I’d suggest testing it with a lower number (i.e., 60) just to make sure it works. If it doesn’t, then there appears to be a plugin that allows for auto-saving too.
You can technically save from in-game, without the console, but that’s only possible if you had given a player admin privileges on the server. I don’t think you did, but if you had they could type /save
in chat to save the server. If you wanted to admin somebody, you can either do so from the console (if you decide to install RocketMod), or you can do it from the Adminlist.dat file but then you have to restart the server.
Server Commands
I’m sorry, it completely skipped my mind that saving would be a pretty important thing. I’m going to suggest installing RocketMod just because it’ll likely just end up being a huge convenience in the long-run, and having access to the console can just make things like this much less of a hassle moving forward for you. That being said, you don’t have to restart the server at all if you don’t want to, but the server will never save and you won’t be able to make any changes to it at all.
If for whatever reason you feel the need to spawn items or vehicles to make up for any losses from having to restart the server without saving, you can do so with the give
and vehicle
commands if cheats
are enabled.
Some commands can only be used in the console, some can only be added to the Commands.dat, and some can be used in both. Here is the full list of commands:
Admin [SteamID | Player]
Admins
Airdrop
AllowP2PRelay
Animal [SteamID | Player]/[AnimalID]
Ban [SteamID | Player]/[Reason]/[Duration]
Bans
Bind [IP]
Chatrate [Number]
Cheats
Cycle [Number]
Day
Debug
EffectUI [EffectID]
Experience [SteamID | Player]/[Experience]
Filter
Flag [SteamID | Player]/[Flag]/[Value]
GameMode [Class Name]
Give [SteamID | Player]/[ItemID]/[Amount]
Gold
Help [Command]
Hide_Admins
Kick [SteamID | Player]/[Reason]
Kill [SteamID | Player]
Loadout [SkillsetID]/[ItemID]/[ItemID]/...
Log [Chat Y/N]/[Join/Leave Y/N]/[Death Y/N]/[Anticheat Y/N].
Map [Level]
MaxPlayers [Number]
Mode [Easy | Normal | Hard]
Modules
Name [Text]
Night
Owner [SteamID]
Password [Text]
Permit [SteamID]/[Tag]
Permits
Perspective [First | Third | Both | Vehicle]
Players
Port [Number]
PvE
Quest [SteamID | Player]/[Quest]
Queue_Size [Number]
Reputation [SteamID | Player]/[Reputation]
ResetConfig
Save
Say [Text]/[R]/[G]/[B]
Shutdown [Delay]/[Explanation]
Slay [SteamID | Player]/[Reason]
Spy [SteamID | Player]
Sync
Teleport [SteamID | Player]/[SteamID | Player | Location]
Time [Number]
Timeout [Number]
Unadmin [SteamID | Player]
Unban [SteamID]
Unpermit [SteamID]
Vehicle [SteamID | Player]/[VehicleID]
Votify [Vote Allowed Y/N]/[Pass Cooldown]/[Fail Cooldown]/[Vote Duration]/[Vote Percentage]/[Players]
Weather [None | Storm | Blizzard]
Welcome [Text]/[R]/[G]/[B]
Whitelisted
Only a few of these will be immediately important to you.
Owner
If there is a Steam account that can join the server and you wish to be recognized as “the owner” (basically just grants admin permissions), then you can add that command to the Commands.dat.
Map
This sets the map that the server loads on startup. If no map is specified, or there is an error in loading the map, then the server defaults to PEI (Prince Edward Island). This must be done in the Commands.dat.
Cheats
By adding Cheats
to the Commands.dat, the server has cheats enabled in the console and for anyone who is an admin or the server owner. Not all commands are considered cheats (for example, teleporting and saving the server), but stuff like spawning items and vehicles is.
Name
This affects the name given to the server as it appears in the global server list. It is Commands.dat-specific.
Port
This command is Commands.dat-specific, and is used if the default port for the server is not 27015. It sounds like your server is running perfectly fine without having set it, and I assume that’s due to 27015 being port forwarded by default. If an issue comes up with the server not being ported properly, you can add Port 27015
to the Commands.dat, and then port forward on your router 27015, 27016, and 27017.
Save
Used for manually saving the server.
Mode
Used for setting the game’s difficulty mode. Commands.dat-specific.
Help
Console-specific. It will show you a list of all the commands and the proper syntax for them. Doing something like Help [Command]
will explain what that command does.
Admin
Allows for giving a player admin permissions via the console.
I believe that’s everything essential. If you have any further questions, please let me know.