MinecraftStats icon indicating copy to clipboard operation
MinecraftStats copied to clipboard

Automatic remote file retrieval

Open pdinklag opened this issue 3 years ago • 2 comments

A more and more frequently requested feature has been some kind of auto-transfer of the required files from the Minecraft server, in scenarios where the server is running on a different machine than the one serving MinecraftStats. FTP has been demanded often times and should definitely be supported. However, the more generic of an approach can be found, the better. For instance, it would be good if SFTP was supported just as well.

The means of retrieving files should be configurable per source in sources.

The needed files should be copied to a local temporary directory and deleted after running the update. For the record, the following files need to be transferred:

  • banned-players.json
  • ops.json
  • server.properties
  • server-icon.png
  • usercache.json
  • world/advancements (entire directory)
  • world/stats (entire directory)

pdinklag avatar Jul 25 '21 05:07 pdinklag

This could use a lot of work (and doesn't get all the files listed here) but I did this for my own instance of this stats page. If anybody comes across this they could use the file or maybe it'll help with adding the functionality to the repo itself. https://github.com/20BBrown14/Digital_Terrain_Helper_Bot/blob/master/minecraft_stats/minecraftStatsRemoteUpdate.py

20BBrown14 avatar Aug 02 '21 17:08 20BBrown14

Note to self: the list of files should be added to the readme.

pdinklag avatar Jun 25 '24 04:06 pdinklag