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 14, 2014@ha11oga11o
I wanna optimize, and yes for optimization i use localhosted.
ALso 0.02% with 2 Players online, but what with 50 ?
-
View User Profile
-
Send Message
Posted Jan 14, 2014uhm... where i can find the hotfix?
-
View User Profile
-
Send Message
Posted Jan 14, 2014@Shooty_
Can you please tell me on what calculator machine you are running your server so you can feel and make it important 0,02% ???
Really? I dont want to be rude or such, im curious cause 0,02% IT IS nothing, its so close to margin to not be noticed and calculated at all.
And, yeah... do you use MySQL at localhost or remotely hosted?
Cheers :)
-
View User Profile
-
Send Message
Posted Jan 14, 2014@Lolmewn
I don't know, in worldguard whe have "Use player movement event" which when disabled we can't see PlayerMoveEvent anymore in timings so look (and yes 0.02% is huge for me !)
-
View User Profile
-
Send Message
Posted Jan 14, 2014@Shooty_
This is because of the way Craftbukkit works. Besides, if you look at your timings, you'll see that it only takes up 0.02% of one tick (which is literally nothing)
-
View User Profile
-
Send Message
Posted Jan 14, 2014@Lolmewn
Why 100% disabling isn't possible o.O ? Can't you optimize the code, and when the plugin enabling if in the Conf there's Move disabled, just don't use PlayerMoveEvents. And i try to save every percent of CPU, and i can't see why should i use cpu for nothing, i just like to count kill , death, normal stats but Not the movement so i really don't understand here ...
-
View User Profile
-
Send Message
Posted Jan 14, 2014@smokeymcjay
Which question are you stuck on?
@smokeymcjay
You can use a webend, but it is optional. If you like it, try it :)
@Shooty_
It still has to check if the stat is disabled etc. 100% disabling is not possible. Although I can't imagine it hurting a lot.
@TNTUP
Sweet! Global stats server has about 180 years of playtime :D
@Mickeyy42
Yay! :D
-
View User Profile
-
Send Message
Posted Jan 13, 2014@Lolmewn
Hello,
Thank you, now it's fix with your 1.3.7 release: http://t.co/2To4hqcPw4
player_id have been changed by player, and all nicknames are here !
Roxxx ! Thank you again, and have a good day.
-
View User Profile
-
Send Message
Posted Jan 13, 2014@Lolmewn
I mean, in stats_player, the world thing I said, the player name was NULL so thats why it shown no name, but in each world. I deleted them, its fine now. Thanks for this fix, you saved 6 month worth of stats x) daaaaamn 85 days of playtime O_O
-
View User Profile
-
Send Message
Posted Jan 13, 2014@Lolmewn
So, i tried to remove The "PlayerMoveEvents" from timings, so i put 'Move' instead of 'MOVE' in disabledStats, and PlayerMoveEvents is still being used. Also, in the Stats it seems that move aren't registered ut the even is used anyway, i really would like to desactivate it.
My config file : http://pastie.org/private/cw0p56g2ncpfpcx8ycu8a
Timings : http://aikar.co/timings.php?url=6748645
-
View User Profile
-
Send Message
Posted Jan 13, 2014@CJMaXTeR
Tell me how it goes can you tell me whats wrong with my plugin
-
View User Profile
-
Send Message
Posted Jan 13, 2014@Lolmewn
i´m using now an external mysql (5.6) server, its working with it. but now i have another problem, dynmap now crashes the whole server. i think its because the stats plugin fed up and crashed the server a couple of times... and now somethin is going wrong, but its too late to investigate.
i give feedback tomorow or so
-
View User Profile
-
Send Message
Posted Jan 13, 2014Should i have some web-end kinda thing for this relativley new with this plugin could use some help :P
-
View User Profile
-
Send Message
Posted Jan 13, 2014Hi I try to run the plugin on a 1.7.2 server with AutoRank and it wont let me get past the part where you have to enter a data value for the wizard, i have already gone through the wizard in game and it always tells me the same thing and never does anything
How can i fix this? every answer it says "wrong answer, restarting wizard"
-
View User Profile
-
Send Message
Posted Jan 13, 2014@TNTUP
You mean it creates those columns or it creates those rows? Rows should be there, columns... not so much.
@CJMaXTeR
Any errors anywhere that can make me wiser?
-
View User Profile
-
Send Message
Posted Jan 13, 2014Hi. I´m running git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2982jnks (MC: 1.7.2) With following Plugins (28): ChestFill, SuperCauldrons, WorldEdit, ApocItembarRefill, LastLog, CommandBook, PermissionsBukkit, BOSEconomy, Vault, Stargate, HeadDrops, RepairShop, Namer, mobmakemoney, HTTPConsole, ChestHarvester, ThunderTower, Permissions, CraftBukkitUpToDate, Scavenger, Lockette, Vote day, ProtocolLib, simpleExperience, Stargate-DHD, SpawnerGUI, dynmap, ChestShop
Its running on a Windows 2008R2 Server with MySQL5.1 installed.
I had no problems with setting the stats-plugin up, also with setting up the web-frontend...
but i have the problem that the plugin fries (crashes) my the sql server. therefore i cant use it... any suggestions ?
-
View User Profile
-
Send Message
Posted Jan 13, 2014@Lolmewn
Well, I don't know why. But, I logged on my mysql, I checked the tables, instead of "world", it also added "world_nether", "world_the_end", "minijeu", "Creative" and "SkyBlock"
Looks like it added more columns, I deleted them, solved problem ;)
-oh sweet :P But um idk which idea I can suggest, Maybe 2, but ik one wont be. ill post suggestions if I have ideas ;) EDIT: Ugh no account.. nvm
-
View User Profile
-
Send Message
Posted Jan 13, 2014@TNTUP
Uuh, not intentional. Any clue what usernames they might have?
@TNTUP
It's obviously up for changes, if you have a suggestion, throw it on https://bitbucket.org/AccountProductions/fluid-mc-stats (You can also follow development there)
@WhosHenry
How do you mean? I think I'll make the command do all worlds combined, so that doesn't change. Same for signs.
-
View User Profile
-
Send Message
Posted Jan 13, 2014@Lolmewn
Ah that's a shame. Please try and put it back to what it was like before, per-world stats are a bit annoying for the players on my server.
-
View User Profile
-
Send Message
Posted Jan 13, 2014@Lolmewn
hm Looks nice but I dont like the main page... Hope to see it improved (dangiit minotar, will use mines when its released heheh)