About Disbanded team restore
TL;DR: This plugin restores lost player teams after a server crash.
In some cases, after an unsuccessful shutdown or a server crash, all player teams get disbanded and no one knows why.
Facepunch knows about this issue for years but since it happens rarely and sporadically, it seems that they can't fix it.
This leads to many annoying problems like
- players can't open doors with locks that were placed by their (former) team mates and therefore will be trapped in the base until suicide (ingame)
- players are beeing attacked by their "own" turrets and traps
- players can't access the tool cupboard and chests since the building priviledge of the former team owner is not shared anymore.
How does it work?
This plugin is simple, it has not chat/console commands, no permissions, not long configuration.
It just saves all Rust teams to a data file on the following events/hooks:
- OnServerSave
- OnTeamCreated
- OnTeamLeave
- OnTeamAcceptInvite
- OnTeamDisbanded
- OnTeamKick
- OnTeamPromote
- OnServerShutdown
Only this last hook tells the plugin that the shutdown was sucessful and planned by setting a flag.
If the server (re)starts and this flag is NOT set, it knows that the server crashed or the process was killed.
In this case the plugin restores all teams and you are good to go.
Roadmap:
- Add a config option to force restore all teams on server start (even if the server did not crash)
- ...
Feel free to DM me your suggestions!