Players stuck at 1.0 secondsSolved
Experiencing some players being stuck at 1.0 seconds and doesn't change.

How can I fix this?
Ahhh, stay at one second, the player is no longer protected
@Arainrr well when it says that, it stays like that and cant loot or damage them still it just stuck

Merged post

Says
[SleeperGuard]: You can't hurt the sleeping player. Remaing protection time: 1.0 seconds

And then it just stays like that
Updated, try the latest version
@Arainrr - uploaded new version still the same result. restarting server to see if that fixes it. WIll post results
I just changed the time of the reminder in the chat

Merged post

The time in the data file does not need to be modified

@Arainrr Restarted server same results

Settings are only set to 10 minutes for protection (600 seconds)

 Data file shows as follows

{
  "76561198144212717": {
    "sleepingTime": "2019-12-19T18:20:37.4999314-06:00",
    "lootRemainingTime": 1.0,
    "damageRemainingTime": 1.0
  },
  "76561198077644880": {
    "sleepingTime": "2019-12-20T15:43:38.9533857-06:00",
    "lootRemainingTime": 1.0,
    "damageRemainingTime": 1.0
  }
}

Example the 2 above are way past 10 minutes

@Arainrr - updated the code, 
says

[SleeperGuard]: You can't loot the sleeping player. Remaing protection time: 0.0 seconds

Still doesnt allow stil blocking. Datafile didn't change either

We are golden it is working now.
Very good. :)
Thanks so much for the update! XD
Locked automatically