Web Statistics

Web Statistics

211 Downloads

Convert Stats From Centimeters to Meters

JasonDykstra opened this issue ยท 1 comments

commented

Hello again,

I just your response to my previous issue and that did answer my question, thank you :) Not sure how I missed that response but I appreciate it!

The only other thing I'm curious about is how to change the display value for certain stats such as blocks traveled by boat/elytra/etc. These distance stats always seem to display in cm instead of m, so traveling 1,000 blocks shows up as "100,000" on the stats page.

These statistics come from placeholderAPI, specifically the statistics portion of it. If there is an easy way to divide by 100 that would be great! Again, thank you in advance for any help.

commented

It should already suffix distances with there respective unit. But based on your comment it does not work / is broken.

I am sorry to disappoint you but I am not going this fix this in the near future, since I have other priorities at the moment. If in the future demand for the plugin rises I will probably remake the whole plugin since the code is pretty shitty.

If you have some knowledge of javascript and java you could probably fix it yourself. The problem probably lays in /main/src/main/resources/web/scripts/util.js the file contains some functions that I used to parse statistics.

Probably not there anwser you were looking for, but I hope it still somewhat helped.