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
@GodsDead
Correct. If you can find the error that happened during conversion I would love to have it, otherwise we'll have to wait until I actually release the update lol. You can just place back the old jar and the old config, all files have been backed up before conversion - I made sure of that.
Come back from holiday to a broken server as Stats 3 Auto-downloaded onto the server while I was out of town! Its auto-downloaded stats 3 and added the extra files, but I don't see old_ prefix on any tables, does this mean that the database was not touched at all?
@jessefjxm
Rate limiting error. That's weird, since I specifically grabbed this UUID fetcher since it has a rate limiter. I'll check it out later. If you didn't want Stats 3, just delete the new config, place the old back and place the old jar back.
@jessefjxm
Looks like Mojang refused the connection
Seem to meet a UUID fetch error, not sure if it's my network issue or offline mode issue:
http://www.wepaste.com/statserr/
And none of my old datas has been transformed :(
@Jake7902
It's exactly what it says - it can't connect to the database. Only thing you can do is re-check connection details, check if the user is allowed to receive connections from where you are connecting, check if user has access to the database you want to access, that kind of stuff.
when i type /stats nothing happens
this shows in console
08.04 13:39:48 [Server] INFO Disabling Stats v2.0.1-272 08.04 13:39:48 [Server] ERROR MySQL connection failed, disabling plugin! 08.04 13:39:48 [Server] ERROR Couldn't retrieve connection from pool, erroring 08.04 13:39:48 [Server] INFO Enabling Stats v2.0.1-272
also i use autorank alongside stats and this is what autorank errors are
08.04 13:39:50 [Server] INFO Couldn't hook into Stats! Make sure the version is correct and Stats properly connects to your MySQL database. 08.04 13:39:50 [Server] INFO Stats (by Lolmewn) is not enabled! 08.04 13:39:50 [Server] INFO Found Stats plugin: Stats (by Lolmewn) 08.04 13:39:50 [Server] INFO Could not find Stats because it's probably disabled! Does Stats properly connect to your MySQL database?
version 2.0.1 spigot 1.8
in the stats folder all the mysql passwords, names, ips etc all match those of my mysql database
@MotheMan
If the database is still intact you can just drop Stats 2 back in and revert the config. Something most likely went wrong while converting the database (if you can find the error, I'd love to have it), so no tables were renamed. If that's the case, you can safely put back Stats 2.
My stats updated automatically to version3, it now seems to not have any data anymore, I'm using a MySQL database, and there aren't any tables called old_stats_player, just stats_player, but it looks like the data is still in there, so it;s just not coming through to in game. Any reason why this would be happening? Do you have to start from scratch to use Stats 3?
@Retrinity
The upgrade only supports UUID's for now. I might add support for non-uuid versions back in the future, although it's tricky since everything uses UUIDs inside of the plugin.
Also, there is something about the converter in there :) http://dev.bukkit.org/bukkit-plugins/lolmewnstats/files/64-stats-v3-0-0-dev/#w-im-coming-from-stats-2-what-do-i-do
@Lolmewn
Nice!
Still don't the upgrade support UUID?
Also I couldn't see anything about a converter in the update log?
Stats 3 is in the approval queue! Do read the changelog!
@Lolmewn
No problem. Ill check back here soon.
@Retrinity
Yes, soon, and yes it is. As far as I can tell, anyway. Still working hard on Stats 3, the converter is a lot of work.
@Lolmewn
"Does some errors, doesn't save last 10 seconds of player progress."
Meaning 10 seconds before they logout?
Also when will a full support 1.8.3 version come?
So except the 10 second bug its safe?
@davewolax
Of course :)
@Retrinity
Well... I found that it's working alright, just not if it tries to do things with logged out players. Which happens every time a player logs out... so meh. Does some errors, doesn't save last 10 seconds of player progress.
Updating the server to 1.8.3 tommorow most likely.
Is there any problems with stats on 1.8.3? Or are they comtatible
@Lolmewn
Can't wait for Stats3! Thanks for your great work and your effort for making this new huge update!
I hope there will be a way to convert my old stats2 database to be used with stats3. And I hope you add that future for prefix stats that I told you. I will make a ticket on Highscores plugin and I hope you also update that too! :)
Do follow me on Twitter to stay updated on Stats 3: https://twitter.com/Lolmewn
I think the only thing left to do is the converter, so you'll see updates soon (tomorrow? Sunday? Who knows!)
@SentinelCraft
Thanks for making a ticket for it :)
Not sure if this is a known issue or not. I didnt find anything for it. Snapshots are working kind of... buggy. I have the TTL set to 1Y and yet it seems to be purging the old snapshots on the first of the month.
First of March I noticed but I figured I had pooched something.
Today I noticed they were gone as well. No clue as to what could cause it.
Relavent config snap { snapshots: enabled: true timeToLive: 1Y interval: 1W previous: 1427868575285 }