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
Stats 2.01 on Spigot 1.8.8, all of a sudden we are getting errors to do with: Caused by: org.apache.logging.log4j.core.appender.AppenderLoggingException: An exception occurred processing Appender Log4JAppender
http://pastebin.com/GxGURqDC
Is there something I can do to fix this? is this why some stats are not getting saved and we have been having stats drop for some players?
@Metisuneatn
There are 1.9 builds on the CI available. Please try those.
Is stats 3 getting upgraded to 1.9? I see some people running it on 1.9, I dont understand how, with the huge list of errors stats causes some insane lag when people break blocks.. or well.. do anything.. My server members keep yelling about their stats and stuff, just wondering if there's any eta or anything for it
@WhosHenry
Select either the whole database in which you have Stats or select all tables that are prefixed with Stats_. That'll back everything up. Stats_player is only one of the tables, there are a couple more (Stats_block, move, etc).
@SXRWahrheit
Using tons of Java 8 features (streams, lambda's, etc) so can't do that, sorry. Just poke your provider, they should really update (It's almost been two years since its release).
Could you make a java7-compatible dev build? My server provider isn't on 8 yet. I know, I know.
So I'm kind of a novice with MySQL but I want to backup my old stats2 database.
I see it's called Stats_player correct?
Then if I'm on MySQLWorkbench, do I do Export Data then select the Stats_player and then export to self contained file?
Will this will backup everything from Stats2? all the stats included?
Stats 3 is reasonably stable on its own, some commands are still missing though (custom stats, for example). Signs also need some more work. If you use Stats mainly to get your data to a website, Stats 3 should work fine.
As for losing data; always make backups. That way losing data is not an option.
@TNTUP
I applied this fix myself for Stats2 for Spigot 1.9:
Run Build Tools Put Stats.jar into the same folder Run this - java -jar BuildData/bin/SpecialSource-2.jar map -m CraftBukkit/deprecation-mappings.csrg -i Stats.jar -o Stats-fixed.jar
Everything is seeming to work correctly so far.
I'm in the same boat is @GodsDead.
I am upgrading to Spigot 1.9 soon but Stats 3.0 isn't stable enough, I don't want to lose all of my player data.
What do you suggest?
@Lolmewn
@GodsDead
So if I understand, I'll be forced to drop off Stats2 since you're not supporting it, and Stats3 isn't stable as of yet(?, haven't tried it)? Else if Stats3 fails, gotta lose up to 2 years worth of stats because of this... Cannot go to 1.9 because of some plugins. I hope if someone else can continue Stats2 while you're working on Stats3 but I don't code sadly :/
Godsdead: shame I guess it wont be updated/supported since lolmewn's goal is for Stats3, tho why Im locked on a dev build of Autorank forever. Hopefully it works...
@Si7VdeR
That's weird - please create a ticket with how to reproduce and I'll take a look.
@HeroCC
No.
@GodsDead
I cannot support two version, I'm already having difficulty supporting just the one. I simply do not have enough time to support two versions.
@SXRWahrheit
Ah, wrong link. I let centrility.nl expire, it's lolmewn.nl now.
Your CI server seems to be down, any idea when it'll come back up?
Can you please, update v2.0.1-272 to work with 1.9, I know you have a Dev build for 3, but there is so much that can go wrong converting to this, I know v2.0.1-272 is working, I don't want to have to convert my entire database to find out things are missing or have not converted properly, and I will have to re-write my entire stats web UI.
Is this compatible with PlaceholderAPI?
Few problems lately: Fish caught is not working correctly. One of my players caught 27 fishes and only 2 of them got registered.
Also when a player kills for example 5 Wither Skeletons and then logs out right after then the kills won't be added to his current count.
So I had 2 Wither Skeletons kills, killed 5 of them and then logged out. I instantly log back in and my kill count is at 2 again although before I left it was at 7.
Btw this is using the mysql database.
@Lolmewn
We have been having a recently influx of lost play time, just not saving.
@GodsDead
Every 10 seconds.
@Metisuneatn
Use stats.show (pretty sure that's the perm in Stats 3).
@conflictxinside
It's back up!
@SILELMOT
What profile do you mean?
@james070508
The automatic configurator has been removed in Stats 3.
@Si7VdeR
I'm still here, just super busy with uni. Open up mcmmo.jar, find plugin.yml, remove stats from the alias. Or set /stats to execute /lolmewnstats in your bukkit.yml. As for the commands; A lot of them haven't been implemented yet in Stats 3.
Does the author still respond to problems?
I mean I am having a huge arse problem here.
Mcmmo overrides the /stats command (keeps saying the proper usage is /mcstats).
Also when I Remove mcmmo then /stats works however any other command like /stats help doesn't work and will just return: Type /stats help to view commands.
The automatic configurator has not appeared to have started on first-time boot. The user had the permission stats.config.
Hello. is it possible to show the achivements you got on your profile?