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
Reading these comments for stats3, Please, Please make sure the autorank developer is aware of the impending changes so this wont break people being able to auto-rank. If there is a big change to the database, do you have a sample as I decided to pick up where I left off with my web UI months ago. Everything will convert correctly without any loss correct? My databases are getting on the massive side, Stats make my databases 50mb.
Like Motheman says. I only tried putting up a sign for my own block breaking and then broke some blocks and for each block I broke the stat showed 2 more. After a while 8-10 blocks it jumped back to show the correct amount but the block after that was counted twice again.
So if I broke the blocks like: 01 02 03 04 05 06 07 08 09 10
The sign showed:
02 04 06 08 10 06 08 10 12 14
Really really weird. :P
Ok so i've played with the plugin a bit more, and it seems like strange things are happening. Block breaking sometimes counts properly and sometimes counts double. And block placing always counts up double and seems to also count down the block breaking stat. And the kills one only counts up normally when killing normal players, killing other OP's seems to make the count go up 2. Oh and the /stats resetall doesn't work. It just comes up with 'Loading player (If he exists...)'
If you can help me get those issues fixed this plugin seems to be amazing
They're being counted twice. When i break 1 block it is counted as 2 etc. Any idea?
@WhosHenry
Thanks, I'll check it out when I find free time (should be somewhere around... hmm)
@ursak
Both Achievements and Highscores will be updated to use the latest version of Stats, albeit probably a bit delayed (They are both waaaaay too coupled to Stats 2).
@MotheMan
What do you mean, coming up twice? When you type /stats or something?
I just installed this on my server, and it didn't come up with any automatic set up but the plugin seems to work. The only issue is that all stats are coming up twice. For example kill, blocks placed and blocks broken.
Any idea what it could be? it;s a spigot 1.8.3 server.
@Lolmewn
I sure hope you get 3 finish this month! Can't live without statistics :S
Oh, and achievements or something similar that works with it so the stats can be used for good things ;D
@Lolmewn
Created one now.
@Retrinity
Probably this month somewhere - just need to re-implement the commands and add a converter from the old version.
@ComeAtMeBro67
Stats 3 will have flatfile implemented by default.
@zachrywilsn
How is it a pain in the long run? You never really have to touch it.
@WhosHenry
Not sure why that is... better create a bug report.
I have an issue with setting a player's votes to a number. I do /stats set Votes <player> 60 for example and it seems like it picks a random number, it's never the number I set it to.
@ComeAtMeBro67
I would like flatfile also. MySQL can be simple etc but its a pain in the ass in the long run. My server does not have a cap on HD space. So I see no need to host this offline from a external source.
Any way we can have this plugin use flatfile/sqlite? Ownage hosting sql databases have been offline for the last 6 days. I need this for autorank
@Lolmewn
Any ETA for a stable version?
still waiting for stats v.3 .. .. .. . . . . . . . . . . . . . . . . . . . . . !
@Retrinity
Pffffft, no idea. Let's all wait and pray for Stats 3 :o
@vipersonickenneth94
There are more users reporting issues with Spigot 1.8 - not sure how to fix yet as I'm not using spigot or 1.8... Not sure what you or I can do at this point :c
@Lolmewn
Sorry to bother you again, but it seems like there's another problem. I initially thought that fixing the non-auto increment field in the SQL database might fix it, but it still happens.
Here's the problem: I can't exactly remember when it happens every time, but I do remember that for quite a few times, it has happened after a player quits.
Pastebin.
After these errors, terrible terrible things start to happen. Offline players' locks become unlocked, offline players' private warps are not accessible to admins, and errors keep spamming the console that look something like this: [22:00:11 INFO]: Exception happened: null [22:00:11 ERROR]: null
Upon accessing an offline player's chest, I get this error:
Pastebin.
Thanks for your time. :)
Edit: Here are some more details on what stops working. Upon player death, it respawns me beside my bed instead of the default /spawn point that essentials has set.
Pastebin.
@Lolmewn (Wonder about my question below too)
This issue was reported before you told. Can you please tell if I am the only user reporting this or others users? If so the usernames would be great :)
(I reported this once before)
@Lolmewn
Well it destroy quite a few things. Anything I can test etc. so you can find the source for the problem?
@Lolmewn
Thanks, I fixed it! Wow, took me a while to figure out how to do that. Gonna post it for people here who may need help:
For those using phpmyadmin, refer to this answer.