pdinklag / MinecraftStats

A Minecraft player statistics browser for the web - supports 1.13 and later!
https://discord.gg/brH5PGG8By
Other
227 stars 53 forks source link

Updating #10

Closed MattCSmith closed 7 years ago

MattCSmith commented 7 years ago

Hi, Thanks for adding a great feature for servers.

Am I correct in my understanding that, in order to update the stats, I must move the contents of the stats dir from the server to the raw dir.

When I do this is shows that every user was last online at the time update.php was ran. I noticed that your website shows different times for every player.

Regards Matt

pdinklag commented 7 years ago

The script uses the files' timestamps to determine the "last online" property, because Minecraft doesn't explicitly store this information.

I suppose that when you copy the files, the timestamps are changed to the time the copy is done.

If you are under Linux, add the --preserve=timestamps option (see man cp). As the option's name suggests, this will preserve the file timestamps and the "last online" information should be correct again.

MattCSmith commented 7 years ago

Thanks for the suggestion. Since my server and website are on different machines, I was able to use filezilla to preserve the time stamp on upload