Jump to content

Disbanded team restore

   (0 reviews)

1 Screenshot

  • 3.4k
  • 17
  • 9.34 kB

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, just a short configuration.
It just saves all Rust teams to a data file on the following events/hooks:
- OnServerSave
- OnTeamCreated
- OnTeamLeave
- OnTeamAcceptInvite
- OnTeamDisbanded
- OnTeamKick
- OnTeamPromote
- OnServerShutdown
- Unload

Only this last two hooks tell 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.

Config file:
"Keep all backups, not only the last" set to "true" will create a backup data file for the teams on every call of the above mention events/hooks, instead of just one backup file.
Don't worry, each file is only a few bytes in size, they won't bloat your hard drive.

By setting the variable "debug" to "true" (in the plugin file, not in the config file!) you can enable verbose logging into the server console.

- 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!

21mac21's Collection

User Feedback



Total number of downloads.



Total customers served.


Files Sold

Total number of files sold.


Payments Processed

Total payments processed.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.