Jump to content

Disbanded team restore 1.1.0.0

$4.99
   (0 reviews)

1 Screenshot

  • 978
  • 9
  • 7.13 kB
 Share

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!


21mac21's Collection

User Feedback

1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.3k

Files Sold

Total number of files sold.

1.6m

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.