Jump to content

Revoking "wipe" permissions on daily restarts

Fixed 0.1.4 0.1.5

steampunkvalley

Posted

When our server starts up, "wipe" permissions are being revoked.

 This command was run, which did assign the appropriate permission:

tperm grant user 76561199566470946 kits.may25force.3 wipe

Console log:

05/10/2025 18:48:47 | [Temporary Permissions] Luv (76561199566470946) - Permission has been granted: 'kits.may25force.3' until the wipe

However, after the server's routine restart at 4am, all temporary permissions granted previously by the plugin (all commands specified wipe) were revoked. 

Console log:

05/11/2025 04:04:38 | [Temporary Permissions] Luv (76561199566470946) - Permission has been revoked: 'kits.may25force.3' | Is expired: True

This has happened every restart with the same results. We wiped last on May 1st (force), and May 15th. 

Thanks!

IIIaKa

Posted

Changed Status from Pending to Work in Progress

IIIaKa

Posted

Hello, I’ve tested it on my end(Oxide), restarted the server 3+ times(using both restart and quit commands), but the permission was not removed.
Could you please check the value of the "Wipe ID" property in the config file, both when the permission is assigned and after the restart?
This plugin detects a wipe based solely on that property and most likely it's changing on your side for some unknown reason during the restart.
Are there any operations being performed with saves or the related files that could be affecting it?

IIIaKa

Posted

Is this message displayed after the restart "Wipe detected! *amount* temporary permissions and temporary groups will be revoked."?

steampunkvalley

Posted

That would explain it.  We sync our configs on server boot with a github repository, so that gets reset every time our server starts.

May I ask why are you not using the OnNewSave hook instead for detecting wipes?

IIIaKa

Posted

9 hours ago, steampunkvalley said:

That would explain it.  We sync our configs on server boot with a github repository, so that gets reset every time our server starts.

May I ask why are you not using the OnNewSave hook instead for detecting wipes?

This hook is triggered when a new save file is created, when !File.Exists(World.SaveFolderName + "/" + World.SaveFileName).
This is also the same place(SaveRestore.Load) where the wipe id is assigned and most likely, since your wipe id changes every time, this hook might also be triggered every time.
Additionally, the plugin might not always be loaded, meaning there is a possibility that the plugin won't be loaded at the moment this hook is called.

IIIaKa

Posted

Maybe I should introduce a config option that allows manual wipe definition.

IIIaKa

Posted

In the next update, I will add a property to set a custom wipe date, which the plugin will use to identify the wipe.

IIIaKa

Posted

Changed Status from Work in Progress to Fixed

Changed Fixed In to Next Version

IIIaKa

Posted

If you have anything to add, feel free to write in this thread.

  • Like 1
1.8m

Downloads

Total number of downloads.

8.4k

Customers

Total customers served.

126.4k

Files Sold

Total number of files sold.

2.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.