Stats by Lolmewn
Stats - made by Lolmewn
Plugin description
Stats is an advanced statistics gathering plugin, currently focused on player statistics. Information such as PVP kills, blocks broken, playtime and much more. You can store this data as simple files, or store them in a MySQL database. The benefit of using the database is that you can also use any web-end out there to display your players' statistics on your website.
Installation instructions
To install the plugin, simply drag-and-drop the Stats.jar into your 'plugins' folder.
When you start the server, a "Stats" folder will be created, containing a config file.
For a detailed description on the config file, click here.
The most important option is "storage", which can be set to either "flatfile" or "mysql" by default.
If you choose MySQL, there is another file (mysql.yml). Fill in your MySQL details there. That's all!
If you're installing a web-end as well, please read the instructions for said web-end on how to install it.
A list of web-ends compatible with Stats 3:
Made one, too? Let me know!
List of available Stats
This is a list of all available stats. Please note that there might be more stats in your environment, as other plugins can add their own stats to the plugin. For those stats, please see the documentation of the plugin providing them.
| Stat name | Description | Available Metadata |
| Arrows | Amount of arrows shot (not hit!) | world |
| Beds entered | Self-explanatory | world |
| Blocks broken | Self-explanatory | world, name, data (see here for more info) |
| Blocks placed | Self-explanatory | world, name, data (see here for more info) |
| Buckets emptied | Self-explanatory | world |
| Buckets filled | Self-explanatory | world |
| Commands done | Amount of commands done | world |
| Damage taken | Self-explanatory | world, cause |
| Death | Amount of times died | world, cause |
| Eggs thrown | Self-explanatory | world |
| Fish caught | Self-explanatory | world |
| Items crafted | Self-explanatory | world, name |
| Items dropped | Self-explanatory | world, name |
| Items picked up | Self-explanatory | world, name |
| Joins | Amount of times joined the server | None |
| Kill | Amount of kills gotten | world, (name of) weapon, entityType |
| Last join | Last time (in milliseconds epoch time) joined the server | world |
| Last seen | Last time (in milliseconds epoch time) left the server | world |
| Money | Not yet functional | world |
| Move | Amount of blocks moved | world, type (0 = walking, 1 = boat, 2 = minecart, 3 = pig, 4 = on a pig in a minecart, 5 = horse, 6 = flying) |
| Omnomnom | Amount of food eaten | world |
| PVP | PVP kills gotten | world, victim (UUID of the other player), time (in milliseconds epoch time), (name of) weapon |
| PVP streak | Current kill-chain, gets reset when killed | world |
| PVP top streak | Highest PVP streak ever achieved - may be moved to Highscores in the future | world |
| Playtime | Time in seconds played on the server | world |
| Shears | Amount of sheeps sheared | world |
| Teleports | Amount of times teleported | world |
| Times kicked | Self-explanatory | world |
| Tools broken | Self-explanatory | world, name |
| Trades | Amount of times traded with a villager | world |
| Votes | Removed since 3.1.1-RC due to incompatibility. If the player name is not found, the vote is ignored | None |
| Words said | Amount of words said | world |
| Times changed world | Self-explanatory | None |
| Xp gained | Amount of XP gained in total | world |
Permissions
Some commands require special permissions to be executed. Here is a list with all permission nodes:
| Node | Default value | Description |
| stats.view | true | Access to /stats |
| stats.view.others | true | Access to /stats <player> |
| stats.custom | op | Gives access to nodes stats.add and stats.create |
| stats.add | op | Access to /stats add |
| stats.create | op | Access to /stats create |
| stats.admin | op | Access to /stats admin |
| stats.reset | op | Gives access to nodes stats.reset.self and stats.reset.others |
| stats.reset.all | op | Access to /stats reset all |
| stats.set | op | Access to /stats set |
| stats.sign.place | op | Can create [Stats] signs |
More info soon
Donations
If you feel like giving something back to me, you can donate to me. All income from donations will be spent on coffee or similar.
I'm accepting donations through:
- Bitcoins on address 1QC19kut8nuMJNAsMZ3QneKuW2a8f5QgQG
- Dogecoins on address DKN8Lrm4KfC7Jh9M2KopjPkwcRfA7Ak3zj
- Paypal, either via email lolmewn(at)gmail.com or via this link
-
View User Profile
-
Send Message
Posted Sep 18, 2014@Zachary_DuBois
First. Support on a windowsmachine is nothing I want or need. I just tried it on my homePC to see if it worked, and it did.
Second. The problem on the host (which run linux, promise :) ) is that all I get is a blank page. No setup-screen. I messed up explaining thought. I don't have to go to config-folder, I meant install-folder. From there I can't connect to the mysql.
But you gave me the most important answer. "it should work", so I'll take it with my host. The time when (if) you or anyone else get a working web-part for this that works as you want it to work is something I can wait for and just try this out until then. :P
Thanks for your answers. :D
-
View User Profile
-
Send Message
Posted Sep 18, 2014@TNTUP
Yeah works with stats 2.0 ive heavily edited the FluidMC stats, as you can tell. Organising players on the player list is on my to-do list for the stats web end, I have a massive list of improvements I plan on adding, Im not sure whether its worth me putting in the work if @Zachary_DuBois is releasing a V2, but as he hasn't answered any of my questions I have no idea what to do at present. He hasn't updated anything in 4 months, and has only created the html frontend for V2, so if its an abandoned project with false promises then I will carry on making my edits to the V1 system and I might release it, bearing in mind my PHP is nowhere near as good as Zachary's, So im not sure if I would release it or keep it for my server only at the moment. Entirely on what Zachary is going to do!
-
View User Profile
-
Send Message
Posted Sep 18, 2014@GodsDead
Your stats works with the 2.0 one? If so, you're lucky to have the top tens on main stats page, i would ever ask it but since its yours (not publicly) I can't find it anywhere, the current one (Fluid MC Stats) is ... ugh I dont like its design, and in your player list I can't sort them by names or last seen time... I would hire you to mimic the old WebStatsX but I think you don't offer those things =/
Im quite scared because im still using the 1.37 one with no UUID support that if name changing becomes available im screwed. Ready to use the plugin, but not the web frontend.
-
View User Profile
-
Send Message
Posted Sep 16, 2014@Zachary_DuBois
Zachary! you do visit the comments! you havnet replied to any of my comments at all, please read back to existing comments so I dont have to repeat myself. As a new question, Do you have a list of all the bugs from V1? Im still using it as there is no alternative, and am tired with waiting for something to happen, so Ive been making my own edits to the V1 system, if I had a list of all the bugs, I could try and iron them out so that theres a usable web UI :) I updated my Top Stats page to list a lot of extra statistics the other day. http://piratemc.com/stats/
-
View User Profile
-
Send Message
Posted Sep 15, 2014@ursak
1. Yes. You need PHP5+, MySQL, PHP-CURL, and a few others. Most shared hosting companies provide these. 2. The config should not be a folder. It should be a file in the root of the web server. 3. FMCS v0.1.X has been discontinued for support due to the bugs in it. A new version is being worked on slowly but at the rate Bukkit is drowning, I do not think I will be able to get a useful update out. 4. I do not support Windows servers of any kind. Windows is a desktop, not a server. Use Linux. 5. It does not matter where your MySQL database is located. As long as you can connect remotely to it (As in all IPs), it should be fine if you set the host accordingly.
-
View User Profile
-
Send Message
Posted Sep 15, 2014@Lolmewn
Just a quck question from someonbe that doesn't know to much about php and mysql. The fluid webend. What is needed to make that run? I have an old account at one.com but can't make it work. The config doesn't start so I have to go to the config-folder directly and then I get the questions for the setup but it can't find the mysql databas so no matter what I've tried I can't make it work.
On a wamp setup on my server at home I have no problems making it work (some php errors but that's because I haven't configured php yet).
I was going to ask one.com about this and see what they could do but it would help if I could figure out what the actual problem is first.
Stats works flawless on the other hand but I have never managed to make achievements or highscore work, it spits out tons of errors and always have done each time I tried them. :(
EDIT: I might add that the mysql database is on a different server online so both one.com and my lokal server need to connect to a database on another network.
-
View User Profile
-
Send Message
Posted Sep 14, 2014Another request, to add a timestamp mysql for PVP kills, then we can have a fronted for top kills that day/month/year.
-
View User Profile
-
Send Message
Posted Sep 11, 2014@Lolmewn
Im with madtomic! Any Eta on bug release version? I would love to get some stats back in-game!
-
View User Profile
-
Send Message
Posted Sep 11, 2014I will keep developing the plugin until there's no life left in Bukkit at all.
-
View User Profile
-
Send Message
Posted Sep 9, 2014Please continue to develop this awesome plugin. This is such a great tool and feature for many server. Thank you again for your hard work!
-
View User Profile
-
Send Message
Posted Sep 8, 2014@Zachary_DuBois
Hey Zachary.
Do you have a plan for what you need to do, and a time frame written out?
its been 4 months since stats 2.0 was released.
Im worried that as we're still only at the frontend stage, Its going to be a long time until the backend is released, If you do not have time to do the work, I Would suggest passing the project on to some people that can do it.
I don't know if you are aware, but most of us planning on using this system already have an established website and will strip the backend to work with out own frontends.
The PHP backend is much more important to get complete, You might be able to speed the process up by using a framework like laravel.
-
View User Profile
-
Send Message
Posted Sep 7, 2014@TNTUP
That kind of top ten is not planned for v0.2.0. I might be able to work something out though.
-
View User Profile
-
Send Message
Posted Sep 7, 2014@Zachary_DuBois
Okay, will check. I mean the topten like this: http://scr.rightawake.com/201409071285544.png
-
View User Profile
-
Send Message
Posted Sep 6, 2014@TNTUP
I replied to you on the forums awhile ago. And what do you mean top ten.
-
View User Profile
-
Send Message
Posted Sep 6, 2014@Lolmewn
Why theres no sort of compat for WebstatsX? Because the unsupported Fluid MCStats is... well not going to say it but simply I dont like it because im used with the WebStatsX as seen at http^://stats.rightawake.com/rac/ that I tried the unsupported one, I dont see the top ten what like WebstatsX offers.
-
View User Profile
-
Send Message
Posted Sep 5, 2014@Lolmewn
Yep. I should be able to get to it mid-next week. The 8th I am booked the entire day though.
-
View User Profile
-
Send Message
Posted Sep 4, 2014@GodsDead
Ah, that bug. Fixed that a while back :) It's in the dev-builds now. I might release a new version soon but first I have to test the backwards compatibility I added in it (it should now also work with CB that don't have UUIDs yet).
As for the Webend, Zachary says he's busy and will get to it soon. If he doesn't and I find some spare time I might just throw some HTML at that repo too, after which some PHP.
-
View User Profile
-
Send Message
Posted Sep 4, 2014@Lolmewn
Yeah I created a ticket, ages ago. If I remember rightly, one of either breaking or placing gets set to the same amount as the other. So I might log on and itll say Blocks broken & blocks placed are the same amount.
Also, how is the new web-interface only a html template still??? It uses bloody boostrap as the backend, you could knock that together in a few hours, we're all in desperate need of a decent front end, thats not filled with useless crap, like loading animations.
-
View User Profile
-
Send Message
Posted Sep 3, 2014@Lolmewn
Web interface is really bugged! Showing loads of error messages, Server status not showing and much more!
-
View User Profile
-
Send Message
Posted Sep 2, 2014@krustymk
I checked with my registrar and I'm pretty sure I got hacked. My account requested a transfer to them apparently. No idea what/how, but yeah. Imma remove that link from the description.