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
I've converted from Stats 2 but all of my player's playtimes have been reset to 0... Any idea?
I updagraded from stats 2 to stats3, so far:
- kill,world=!world
- Kill,world=!world,entityType=PLAYER
There is NO WAY to set custom messages before them to tell players what they are, they both use "kill" in the messages.yml
Again there is a major, major bug with your terrible disconnects, there is no error, no startup error, just full blown stops working randomly, for no reason, displays all players at 0 stats, only a reboot fixes it, absolutely terrible upgrade from stats2.
it does not work for the version spigot 1.11.2 vui lòng cập nhật it!
Hi Lolmewn,
very nice Plugin. I have two questions: Does this tool gather stats as recently as it is set up or does it crawl internal minecraft stock data and continues from this current situation. I don't want to start from zero because my alias has killed half a million endermen so far for example. And ist this plugin ready for version 1.11.2? Thanks for an answer in advance.
Stats2 270mb database converting to the stats3 database at 905mb, is so drastically unnecessarily large that its not even possible to host on a shared hosting account, limits of 750mb per Database.
Stats 3
Cant use a line break in messages.yml
Figured this out, I needed to put messages in speech marks.I have spent a long time sorting out the formatting of messages.yml if you would like a tidier cleaner version.
Thanks for this feedback, it'd be great if you could make issues for these points on my issue tracker (before they get lost in the comments). As for the database size, I'm currently thinking about revamping the way I connect & store my data. Stats2 had a table where all stats without metadata (or, at most only world) would be stored, making the column name the stat name. In Stats 3 each stat has their own table, which makes it easier for me to store and more clear where the data is. This does mean that for each stat I store the UUID and world again.
I finally managed to get the conversion to finish from Stats 2 to Stats 3. The database went from 270mb to an absolute outstanding gob smacking 905mb, I though the new database schema was suppose to be more efficient? That goes from; Being able to create a backup every day and save it offsite, to doing it maybe once a week? That is literally 3.3x the size of the initial database. What the hell.
Right, testing out a new plugin to figure out what plugins cause lag or disruption on my server, Stats is flagged for the way it handles SQL queries.
Plugin Stats is performing a blocking action to socket://192.168.0.10:3306 on the main thread This could be a performance hit.
Using LagMonitor to track https://www.spigotmc.org/resources/lagmonitor.21348/
hes even nice enough to leave you with a stack trace to show where the performance fault with stats is. If you don't understand why its being flagged, please do talk to the lagmonitor developer, he will be able to explain in detail.
I am working on getting WEBStatsX working with stats 3.
Lots of changes in the database.
Hope to have it up by July at the earliest.
you can help out too by visiting github and adding some contributions.
https://github.com/adamwbb/webstatsx-Reloaded
I get this error:
Could not pass event PlayerMoveEvent to Stats v3.1.1-RC
please help me!
So, for some reason... On restart stats seems to halt the restart. I am going to work on it on my dev server, and ill get you a copy of the errors. Would you like a ticket on the bitbucket or elsewhere?
Update. I started combing around. I found that other version you posted on BitBucket in response. It seems to have corrected that problem.
So how would one go about fixing this?
https://i.gyazo.com/6e90279175dc766c3e1a0d6d00761d4f.png
@SentinelCraft
Hey there! I have some documentation over here: https://bitbucket.org/Lolmewn/stats/wiki/Home If you find things missing (there will be quite some things missing), see if you can add it or poke me about it. It'd love to get some help :)
Hey Lolmewn, thanks again for this awesome plugin, I posted probably over a year ago when I started using this plugin, and its still going strong (minus some normal interuptions between updates of course)
I have been looking for the updated documentation ("soon") for some time, the config file on Stats 3 is much different than it is on stats 2.
If you would like I am happy to help with documenting all of this for you, as long as this gets done I don't mind helping out.
Unless of course you already have a github or something with the documentation and I am just missing it?
@Moiseiko
Use Java 8. Google would've told you the same thing.
Hell. Version 1.10.2 Spigot Can't load plugin
Can you help me?
Does anyone know where I can find documentation for the plugin? The info here seems to be incomplete. For example I'm using the sign feature as the web frontend has problems but I dont know the syntax. I found out that [Stats] statname and username works but what if I want the top 10 or something like that?
@coldice4
I guess you're right. Anyway, IDs with names can be found here: http://minecraft-ids.grahamedgecombe.com/ - List with names is here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
@Lolmewn
Well I couldn't find anything, only that Bukkit/Spigot uses a different map than minecraft