Map not saving when server restarted by host
Hi,

I have problem with my RUST server.
- Sometime when I join my structures are deleted.
- I have NoDecay plugin (so it cannot be from decay)

I want to create plugin which will save map on restart but I don't know how to save map in C# plugin.

Can anybody help me, please?
Thanks alot for any advice.
It should automatically save it. What are you using to restart your server? Are you sure it's because of a restart? Are you sure decay is completely disabled with this plugin?
I paying server hosting so there I just press restart. Yes its because restarts because sometime server crash and all is gone just map is same. Decay is turned off. 
Then probably you should ask your host about this.
Ok thanks
If the server is crashing then the map isnt having time to save... there is no addon that can detect just before a server is about to crash and save the map. Might suggest setting your servers default save time to 300-900sec until you get this fixed or find a diffrent host.
Razor thanks for advice!
Keep in mind that many hosts do not actually restart your server, they just force kill the process. Killing the process would cause the server to potentially be corrupt and not saved as it wouldn't have gone through the normal shutdown process and not gracefully handled.
there is easier way like using timed execute plugin and add command to restart server like every day at same time or every so often, then server will save automatically on restart

forget buttons on host panel.. they are not so good
ok thanks all guys I will try