Zrips / CMI

116 stars 98 forks source link

Jail AFK time #7936

Open Chiefink5 opened 1 year ago

Chiefink5 commented 1 year ago

Description of Issue

In configurations, the jailed players time should not decrease when offline with the CountWhileOffline: false but i had a player get jailed and havent been on since, but their jail time is complete.

Version Information

CMI: 9.6.0.9 BungeeCord CMIB  SqLite
[15:34:15 INFO]: CMILib: 1.3.1.1 
[15:34:15 INFO]: Server: Paper(388) 1.18.2-R0.1-SNAPSHOT
[15:34:15 INFO]: CMI economy: Enabled Vault: 1.7.3-CMI CMI Chat: Enabled 
[15:34:15 INFO]: Modules -> 48 enabled 10 disabled: spawnerProximity, flightCharge, chatBubble, tablist, armorstand, shulkerBackpack, holograms, spawners, spawnerCharge, namePlates

Errors

no errors about jailing

Relevant Config Sections

plugins/CMI/config.yml

line 1660 in my panel

Relevant Plugins

Vault 1.7.3

Agreements

Zrips commented 1 year ago

What method did you used exactly to check players jail status/time?

Chiefink5 commented 1 year ago

well, for one they were no longer jailed when they joined back in, i also have signs and holos that display who is jailed, for how long, the reason and bond amount... and all of those were empty except the bond (when a bond is paid i have a message sent to discord, and the bond amount is cleared in game, so no one paid the bond, also no one else likes the kid thats jailed so yeah xD)

i had to rejail the player for a longer amount of time to weigh out the offline time

Zrips commented 10 months ago

Retested it and it looks to be working correctly. Offline players jail time isn't being counted down. You might want to test this with someone being jailed or just check anyone who is jailed already and check their remaining jail time. It could be the case that CountWhileOffline was changed to true which could have automatically released jailed players whose time expired based on when they got failed.