TechnicJelle / BlueMapOfflinePlayerMarkers

Minecraft Paper plugin and BlueMap addon that adds markers where players have logged off
Mozilla Public License 2.0
14 stars 8 forks source link

Last Played Time proper localization #23

Closed TechnicJelle closed 1 year ago

TechnicJelle commented 1 year ago

Currently, the last played time format is hard-coded in as yyyy-MM-dd HH:mm:ss: image

Some JavaScript could probably transform the Unix time stamp of player.getLastPlayed() into the proper locale for each viewer of the map.

You should remove the date formatting code that's currently there and just put the player.getLastPlayed() function directly in the HTML, like so: image image

Then I'm sure some JavaScripty way could be figured out to transform that properly. The js code should probably go into here: https://github.com/TechnicJelle/BlueMapOfflinePlayerMarkers/blob/main/src/main/resources/script.js