Jump to content

No delay in protection when setting

Closed 3.4.3 3.4.4

It appears it doesnt set a timer of 15 minutes when the player logs off.

 

So basically you get immidiantely protected if you have 100 % offline protection.

 

    "Protection levels": [
      {
        "Rank": 1,
        "Online protection percentage (0-100)": 1.0,
        "Offline protection percentage (0-100)": 100.0,
        "Hourly cost per authorized player": 0.0,
        "Hourly cost per floor": 0.0,
        "Hourly base cost": 10.0,
        "Cost per damage protected": 0.0,
        "Max protection time (hours)": 24,
        "Delay for offline protection (seconds)": 900,
        "Delay after taking damage (seconds)": 10,
        "Damage resets timer when owner is offline": true,
        "Allow tugboat protection": true,
        "Founder Limit": null
      }
    ],

Share this comment


Link to comment

Unfortunately I wont be around this weekend to troubleshoot this, but I will do that when I return.

A couple things you can try in the meantime:

- 15 minutes is a long time. If the server restarts or the plugin is reloaded at any point during that timer, then the timer will be lost and it will instantly grant the protection. 

- That being said, I would recommend trying a smaller amount of time first, like 10 seconds, just to see if that works. That info may help me figure out the problem faster when I return.

- (optional) to provide even more info, you could enable logging in the config and take note of the ID of a tc and send me the log file of that TC. You should be able to see in the log file when the timer has started and when it completes ( and should tell you the reason why). There's instructions on logging in the plugin doc.

Share this comment


Link to comment

Is it not possible to write that timer to data ? and get the time from here instead of running this timer ? i will see what i can find. thanks

Share this comment


Link to comment

I have same problem

with the timers

they dont work

i have set dammage delay on 30 min and player goes offline mid raid and protected

can you take a look to this?

my players are complaining about it

Edited by mark bergervoet

Share this comment


Link to comment

Yes, I am away this weekend unfortunately, but I have started to look into it. I'll update you guys when I have something to test

Share this comment


Link to comment

I have a fix in the works... but its going to require a lot of testing before getting posted. I can DM you guys a version if you want to try it.

Share this comment


Link to comment

unfortunately i have the same problem, no matter how i set the timer, the protection is there as soon as the player goes offline, is there already a final solution?

Otherwise I would also be interested in the test file

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.6k

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.