TrueMB / DiscordNotify

Connects your Discord Server with your Minecraft Server!
https://www.spigotmc.org/resources/discordnotify-notifications-and-utils-for-discord.94230/
GNU General Public License v2.0
7 stars 5 forks source link

[ISSUE] Playtime doesn't Scan the base time anymore and wrong math #9

Closed TrueMB closed 2 years ago

TrueMB commented 2 years ago

Describe the bug Since the plugin supported Velocity, it doesn't scan the server for the base time anymore.

https://github.com/TrueMB/DiscordNotify/blob/b54ecb85ecd18108ef1228658504599463d2473c/src/me/truemb/disnotify/spigot/main/Main.java#L233

Also the scan should import the data to the database in milliseconds not as ticks.

The playerinfo discord command f.e. tries to divide the counted milliseconds through ticks 1000 milli / 20 ticks -> Which outputs a way to high second value.

TrueMB commented 2 years ago

Fixed in https://github.com/TrueMB/DiscordNotify/commit/034161c218ab76eae5e1a7e678915141a21ea20e