XmlStats
XmlStats
About this plugin
XmlStats hooks into several plugins and populates a tiny own webserver to deliver the data got from the plugins. So you are able to extract plugin generated data from the minecraft server and display the data on your own website for example.
At this very early point of development, XmlStats only supports the following plugins:
- Stats
- All major Economy plugins (via Register)
- Achievements
For the later development i am planning to support much more plugins, like
- BetterShop
- ChestShop
Also i am planning to improve the support of iConomy and implement some kind of authentication, so not everybody can access the provided data.
Installation
After dropping the jar file or unpacking the zip archive into your servers plugin directory, simply reload your server.
Usage
Ingame
At this time of the development an Op is able to reload the plugin without reloading the whole server:
/xmlstats reload
Via browser
To get data from my plugin simply access the following xml files:
For a list of all known players on your server:
http://server:port/user_list.xml
For the added up stats of all known players:
http://server:port/user_stats.xml?sum=*
To fetch the stats of the given user:
http://server:port/user_stats.xml?user=username
Or to fetch the stats of a list of users:
http://server:port/user_stats.xml?user=user1,user2
You can combine these parameters, so you can receive the sum of some users and specific stats:
http://server:port/user_stats.xml?sum=user1,user2&user=*
To get data provided by the iConomy plugin:
http://server:port/user_balances.xml?user=*
http://server:port/user_balances.xml?sum=*
Also you can request achievement data provided by the achievements plugin via:
http://server:port/achievements_list.xml
http://server:port/user_achievements.xml?user=*
You can request gzip compressed files by using the parameter gzip=true. This works on all files:
http://server:port/userstats.xml?gzip=true
Keep in mind: 9123 is the default port that can be changed in the plugins config.yml!
Support the development
If you like this plugin, you can support the development in many different ways.
The easiest way is to post feature- and change-requests to Github and i would totally appreciate it if you would clone my repository and would send in some changes. :)
Please, could you switch to using vault instead of register?
@sockenklaus Edit once again a brain fart lol. Can you add the ability to forward a <?xml-stylesheet href="http://'servername'/'filename'.xsl" type="text/xsl" ?>
@sockenklaus
Yeh after i posted my comment i started to add the xml to my apache server. I was thinking i could have just linked to the pages. But it is still a cool plugin.
@cky2250
Hi,
this is not meant to look like a webpage. It just delivers data via xml to give you the possibility to process the data with your PHP script or whatever you like.
Hey is this still not working? when i load the web page it is alll xml code and does not look like a webpage.
Also it would be cool if you make a homepage for this plugin so people can go from page to page. * I don't know if it is already like this though.
- One last thing that would be cool is adding support to forward people to other pages on other ports of the home server or an website. So that I could just give one link to people and they can view the dynmap plugin.