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 Jan 6, 2015Is this because of changes in stats3?
http://pastebin.com/sCBUQ3tt
Cheers
-
View User Profile
-
Send Message
Posted Jan 6, 2015@Lolmewn
Okay =)
-
View User Profile
-
Send Message
Posted Jan 6, 2015@TNTUP
No need to update anything - it's down for maintenance right now. Just updated the database with some extra constraints and now it's just spitting out errors, so I'm gonna leave it off until I fix things. You can safely ignore the error :)
-
View User Profile
-
Send Message
Posted Jan 5, 2015@Liger_XT5
Thats not related to mysql, its lolmewn's or cynexit idk either since it mention "global server" which sends all tracked data to that server which is down/inactive I guess.
Mysql is fine, no issues
-
View User Profile
-
Send Message
Posted Jan 5, 2015@TNTUP
I suggest replacing where you have the URL in the config for your database, and use the IP. If MySQL is on the same machine, just place: localhost
-
View User Profile
-
Send Message
Posted Jan 5, 2015Getting this since today, 23:52:27 CONSOLE: WARN]: [Stats] Couldn't connect to global server! Your DNS lookup might be broken or inactive!
I need to turn this option off since it keeps saying that every 30s I think :P
Am I forced to update to the latest Stats? For the UUID compat I would do but theres no proper WebUI which I like and sadly I can't code something since I suck at PHP :/ Guess no webUI would be used.
@Lolmewn I love this plugin ever :)
-
View User Profile
-
Send Message
Posted Jan 5, 2015@robinp7720
Looks like there's a color code in front of the query. I'm guessing your chat plugin got to it before my plugin and now there's that in front of the message. I see you've made a ticket, and I *think* I know how to fix this one. I'll keep you posted.
-
View User Profile
-
Send Message
Posted Jan 5, 2015@Lolmewn
This is the same error I get every time: http:pastebin.com/kHTfZ5n5
-
View User Profile
-
Send Message
Posted Jan 4, 2015@catprowler
Just threw in the CB you sent me - works 100% for me. I can't think of anything other than it being something on your end. Does the MySQL user have access to the database? Does the MySQL user have privileges to access the MySQL database from where you're trying to connect? (localhost is usually fine)
-
View User Profile
-
Send Message
Posted Jan 4, 2015@robinp7720
I *think* it says something in the console in that case. Could you check that out and tell me what it says?
-
View User Profile
-
Send Message
Posted Jan 4, 2015How does the Custom sql query for the custom sign modus work? I tried
but it said that its a fault query. Some more documentation about this would be nice!
-
View User Profile
-
Send Message
Posted Jan 4, 2015@Lolmewn
Sure. Thank you.
-
View User Profile
-
Send Message
Posted Jan 4, 2015@catprowler
Would you mind PMing me a copy of your 1.8 build? I have a hunch as to what's causing it but not sure...
-
View User Profile
-
Send Message
Posted Jan 3, 2015Hi there, I was wondering if you could please help? Now that I am running a minecraft 1.8 server I keep getting this in the console? http://pastebin.com/HTyNtVvJ
Is there a fix?
Thank you :D
-
View User Profile
-
Send Message
Posted Jan 3, 2015But there is something weird here! I have double checked with my host, and the plugin is correctly set up with MySQL ;o
-
View User Profile
-
Send Message
Posted Jan 3, 2015@Madwolf_hc
Log says MySQL connection failed. Better check that out ;)
@madtomic
Websites are not MC version dependant o.o
-
View User Profile
-
Send Message
Posted Jan 3, 2015Can I use Fluid MC Stats v0.2.0 on 1.7.9?
-
View User Profile
-
Send Message
Posted Jan 3, 2015Hello!
Today, Autorank crashed for me. I haven't touched the config file or anything. And when I logged into my server and wrote /plugins, Stats was disabled.
I have a pastebin of what happend here:
http://pastebin.com/qxeiBFgn
And I can't get Stats or Autorank up and running fortunately! I don't know what to do!
(I have tried every Autorank and Stats version, but nothing works!)
Can you please take a look and help me? :)
-
View User Profile
-
Send Message
Posted Jan 3, 2015@JTPROG
Agreed, documentation is very important. I'll poke Zachary about it as he's in charge of web-end right now.
As for anyone interested in Stats 3.0, here's a pre-alpha look into the config file. You can already see some new features are present ;)

-
View User Profile
-
Send Message
Posted Jan 3, 2015@Liger_XT5
I'm surprised that the devs here were more or less ignoring Liger_XT5 and krustymk's issues as this is something that I ran into, and any new user will run into, at least if you are using a fresh install of WAMP.
I would highly recommend you update your documentation and make it a bit more clear and specific, and include what I will write below as a possiblity. Good installation documentation is a very important thing I feel many web devs skimp out on. If people can't figure out how to use your things, well, they won't.
@Liger_XT5: I Think I've found a solution for us:
Checking the apache error logs, it appears it does not have the rewrite module enabled. Try enabling it as per below and your issue should be fixed:
"From: http://www.astahost.com/info/tiistm-apache-tutorial-enable-mod-rewrite-windows-action-guide-enable-mod-rewrite-windows.html
Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines) Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)"