Cooldown problemFixed
Hello,
someone used the excavator and when I wanted to start it, it tells me 1 minute of cooldown ..Skip this one minute delay, I want to start it and it says I have to wait 60 minutes ...

c8nR1eiVnI0o2SZ.png

config file:
{
  "CoolDown before releasing excavator": 5.0,
  "Send Excavator available Message to All": true,
  "Enable engine loot after it is started to add diesel": false,
  "Use Teams": true,
  "Use Clans plugin": true,
  "CoolDown before a player or team can restart the excavator (0 is disabled)": 10800.0,
  "Apply cooldown to all excavators": true,
  "Running time per fuel units (time in seconds)": 60.0,
  "Debug": false
}

data file:
{
  "2696": {
    "playerid": 76561198393928512,
    "displayName": "Rasuy",
    "captured": false,
    "starttime": "2021-09-16T21:17:54.188214+03:00",
    "stoptime": "2021-09-17T05:40:00.401514+03:00",
    "Name": "Alpha",
    "PlayerCooldown": {
      "76561198051789938": "2021-09-24T04:32:47.270897+03:00",
      "76561197984580089": "2021-09-24T04:32:47.270897+03:00",
      "76561198393928512": "2021-09-24T17:40:00.401528+03:00"
    }
  }
}

would it be possible to save to a log file when it is started and stopped please?

if can help you, start at 13h44 (french hours), data file:

{
  "2696": {
    "playerid": 76561############,
    "displayName": "Tanki 10/21/2020 :'(",
    "captured": true,
    "starttime": "2021-09-17T14:50:38.120035+03:00",
    "stoptime": "2021-09-17T05:40:00.401514+03:00",
    "Name": "Alpha",
    "PlayerCooldown": {
      "76561############": "2021-09-25T03:50:38.121702+03:00",
      "76561############": "2021-09-25T03:50:38.121702+03:00",
      "76561############": "2021-09-25T03:50:38.121702+03:00"
    }
  }
}​


Merged post

and maybe, can be specified that for the option: CoolDown before a player or team can restart the excavator (0 is disabled)they are minutes and not seconds ^^

Thanks for providing all the info. It helps to find the issue.
First, a cooldown of 10800 minutes is very long (7.5 days).
I have updated the documentation section to show the units.
If you change the cooldown period, you need to stop the plugin and erase the data file, to reset excavator data.

For the time error, I was using. Minutes, instead of TotalMinutes. It will now show time exceeding 60 minutes.

I am also adding some logs and discord messages. see config file to enable
an updated version is available.

First, a cooldown of 10800 minutes is very long (7.5 days).​

I thought it was seconds ... it's when I looked at the given file that I understood my error ;)

yes ofc no worrie for reset cooldown ;)

I'l try tomorrow for sure ;)

Thanks very much

Merged post

Hello,

not really solved, i've issue again with cooldown:
{
  "CoolDown before releasing excavator": 5.0,
  "Send Excavator available Message to All": true,
  "Enable engine loot after it is started to add diesel": false,
  "Use Teams": true,
  "Use Clans plugin": true,
  "CoolDown before a player or team can restart the excavator (0 is disabled)": 1.0,
  "Apply cooldown to all excavators": true,
  "Running time per fuel units (time in seconds)": 60.0,
  "Sulfur production quantity (default=3)": 8,
  "HQM production quantity (default=1)": 7,
  "Metal production quantity (default=8)": 11,
  "Stone production quantity (default=20)": 23,
  "Use Discord hook": false,
  "Discord hook url": "",
  "Debug": false,
  "Log to file": true
}​

in data file:
{
  "2705": {
    "playerid": 76561############,
    "displayName": "Tanki 10/21/2020 :'(",
    "captured": true,
    "starttime": "2021-09-20T13:32:28.1223+01:00",
    "stoptime": "2021-09-20T14:02:29.117554+01:00",
    "Name": "Alpha",
    "PlayerCooldown": {
      "76561############": "2021-09-20T14:03:29.117561+01:00",
      "76561############": "2021-09-20T14:03:29.117561+01:00"
    }
  }
}​

ingame, it said: Giant excavator currently in use by me... but cooldown is expired normaly
Locked automatically