EssentialsX

EssentialsX

2M Downloads

/whois returns an incorrect value for playtime. /playtime returns the correct value.

Bobcat00 opened this issue ยท 0 comments

commented

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=59ba03016ec546aa9715e96ccda0ebcb

Error log (if applicable)

No response

Bug description

/whois returns an incorrect value for playtime. /playtime returns the correct value.

[Essentials] CONSOLE issued server command: /whois Bobcat00
====== WhoIs: Bobcat00 ======
- Playtime: 16 hours 16 minutes 56 seconds
[Essentials] CONSOLE issued server command: /playtime Bobcat00
Playtime of [::CoOwner::]~Bobcat: 3 months 9 days 1 hour

Steps to reproduce

Enter /whois and /playtime command for someone who has played a long, long time on the server. They have to have played a long time.

Expected behaviour

The times should be the same.

Actual behaviour

The whois command contains an incorrect value for playtime. See above.

Spoiler: It's an integer overflow. PR incoming shortly.