Jump to content
Straza

Jtime fix

Recommended Posts

Posted (edited)

A small suggestion but a massive quality of life improvement. Fix the /jtime counter to show hours, minutes and seconds instead of a couple thousand seconds. Nobody likes having to calculate their prison time when it could be easily fixed to display times that are easy to digest

Edited by Straza
  • Upvote 2
Posted
int totalSeconds = "whatever you are currently sending to /jtime";
int hours = totalSeconds / 3600;
int minutes = totalSeconds / 60 % 60;
int seconds = totalSeconds %  60;

Here is some pseudo-code.

Then just send this is the new output of the function.

Posted

Would be mega easy to do from a programming standpoint as highlighted by the nerd 2 posts above me.
+1 absolutely.
Also give guards the ability to do /jtime [ID] to get inmates jtime in a similar format

  • Like 3


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and our Privacy Policy. 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.