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

Automatic updates and hosting via Bukkit plugins #165

Closed pdinklag closed 1 year ago

pdinklag commented 2 years ago

Several times already, people asked for a Bukkit plugin.

There will not be an official port of MinecraftStats to Java or to a Bukkit plugin, and vanilla Minecraft servers must be retained at all costs.

However, it should be possible to write a Bukkit plugin that bundles MinecraftStats and takes care of performing updates automatically, as well as make use of another plugin's web server (e.g., Dynmap) for presentation. Since all of this would happen in the scope of the Minecraft server user and virtually any remotely modern Linux machine has Python 3 available, this should be perfectly possible on hosted servers with no administrative rights required whatsoever.

minster586 commented 2 years ago

ok what about maybe a way to allow the Python app to write data to a my SQL database then have the web interface link up to that my SQL and show that data And by default that would not be enabled so that it still works for vanilla servers

pdinklag commented 2 years ago

ok what about maybe a way to allow the Python app to write data to a my SQL database then have the web interface link up to that my SQL and show that data And by default that would not be enabled so that it still works for vanilla servers

That's a very different request from the issue description. Anyway, what would the advantage of this be? What's the goal you have in mind that can't be achieved right now using the JSON-based database? The entire web frontend would have to be rewritten almost completely to work server side in order to access the database (PHP, JSP, something like that), that's pretty much exactly what I didn't want for MinecraftStats.

minster586 commented 2 years ago

So I run A Web server that I would like to move the files to and I don't understand Linux that well for one my servers are on a different machine than the web server I don't understand again how Linux works and I would like to be able to simply have it read the data from a MySQL over to the web front and from multiple servers I really do like your web front end I just kind of wish there was another way to get the data

pdinklag commented 2 years ago

What you are describing fits more to issue #152, it has nothing to do with Bukkit, so let's do any further discussion there please. In any event, while #152 is not yet implemented (and frankly I cannot make any promises as to when it will be), you will have to come up with your own solution to transfer data. I still absolutely cannot see how adding a MySQL database would help with your case, at all - you'd still have to transfer the JSON files from your Minecraft server to whatever server runs MinecraftStats.

pdinklag commented 1 year ago

Obsolete. Contrary to what I stated earlier, a port to Java is nearly done and a Bukkit plugin will be included.