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 20, 2014@GodsDead
Works just fine!
-
View User Profile
-
Send Message
Posted Jan 20, 2014For a fresh server which file do I use? I currently have Stats v1.38->1.37-FIX installed.
-
View User Profile
-
Send Message
Posted Jan 19, 2014@Alexander310898
Yep, there is. Already fixed in the latest dev builds. However, I suggest you download the latest file available (the -FIX file) and install that. It'll downgrade your database again to a form that is stable. The 1.38 version was never supposed to be downloaded in the first place.
-
View User Profile
-
Send Message
Posted Jan 19, 2014I am using this plugin with MySQL and I have 3 servers. One of the servers always sends me an error with something connected with Duplicate column name 'firstjoin'. I tried to reinstall this plugin and thats what happened. 1st server that was showing an error stopped doing it but 3rd server started to do it. I think there is something wrong with how is firstjoin column generates. This is the full error link: http://pastebin.com/Fs0eQDrZ
-
View User Profile
-
Send Message
Posted Jan 19, 2014@NizeHD
Not right now, no. If you could be so friendly as to make a ticket, thatd be great :)
-
View User Profile
-
Send Message
Posted Jan 18, 2014@Lolmewn
Is there any way I can avoid this?
-
View User Profile
-
Send Message
Posted Jan 18, 2014@NizeHD
Eh, it's a small bug. It tries to load data from MySQL, can't find anything, and is therefore left with an empty player. The save mechanism doesn't take this into account though.
-
View User Profile
-
Send Message
Posted Jan 17, 2014When I try to look up stats for a player ingame who doesnt exist, the plugin automaticly creates that user in the database. Is that intended? http://housecat.bplaced.net/players.php
-
View User Profile
-
Send Message
Posted Jan 17, 2014@Lolmewn
The last time, I did not removed the /plugins/Stats folder, so the config file remained no changed and the version was "1.3.6" in config file.
Now, with the latest, that's the "1.3.7" version in config file and my datas in database are good. So for the moment that's good.
To be continued... :)
-
View User Profile
-
Send Message
Posted Jan 17, 2014@Mickeyy42
Tweet and latest have a minor difference. Should probably work both, though. Are you having issues?
@deathhzone
Maybe I did add it :P So much code I forget what's in it, haha
-
View User Profile
-
Send Message
Posted Jan 17, 2014@Lolmewn
That's odd, because if I do /stats reload it does reload it, it seems.
-
View User Profile
-
Send Message
Posted Jan 17, 2014ADD HIGHEST PING STAT!!!
-
View User Profile
-
Send Message
Posted Jan 17, 2014@Lolmewn
When I compare this one of your tweet and this one of latest file. The size is the same for each Stats.jar. :/
-
View User Profile
-
Send Message
Posted Jan 17, 2014@Mickeyy42
Not 100% sure. Better grab the one from the 'files' page. It might have been that there was a Stats.jar in the 'update' folder already, which replaced the fixed version you put in, making it seem as if it updated.
-
View User Profile
-
Send Message
Posted Jan 17, 2014@Lolmewn
Yesterday, I did it with your link in this tweet: https://twitter.com/Lolmewn/status/422701734566572032
But when the server reboot, the plugin updating despite my "update" value is on "false" in the config file.
It was the latest file in your tweet ?
-
View User Profile
-
Send Message
Posted Jan 17, 2014@Ducky_333
It's the 'amount' column. I have never heard of it wiping data. This would also be weird since the plugin is specifically designed to only add to the database (with amount=amount+newKills).
@deathhzone
Not yet implemented.
@deathhzone
Edit it when the server is off. I don't think there's a /stats reload command yet.
@Mickeyy42
Download and install the latest file, this should convert it back.
-
View User Profile
-
Send Message
Posted Jan 17, 2014Hello,
I have the same problem than the last time.
"player" table have been changed again to "player_id" table with id, I had desactived the updates and plugin updating whereas "update" value was "false" in config file, why both issues ?
In pleasure to read you, courage !
-
View User Profile
-
Send Message
Posted Jan 16, 2014The config resets everytime I edit it and /stats reload in game. I simply just change "- Move" under Command List to "- Votes" and it resets. I have Votifier, and it's working fine.
Also, you should add Eco support using Vault. So it can track things like Total $ Earned and such, would be great :). Thanks.
-
View User Profile
-
Send Message
Posted Jan 16, 2014If I enable ignoreAFK in the config, how long does it take for the player to be AFK, by the plugins consideration?
-
View User Profile
-
Send Message
Posted Jan 16, 2014So, in the mySQL database 'stats_kill' the 'number' column is where the number of mobs a player has killed? I'm having some players reporting that they are not hit requirements in AutoRank that they certainly should have. When I check the Stats database it's saying they have numbers as low as 3 creeper kills, when they have been specifically grinding creepers to earn a rank. i did some tests and it appear to be counting fine, so i can only assume it has wiped their data at some point. Is that a possibility, and if so why?