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 Oct 5, 2013Can we have a beta for the new web end?
-
View User Profile
-
Send Message
Posted Oct 5, 2013@ha11oga11o
Haha, alright :) If you turn on beta functions you'll see awesome stuff xD per-world support, snapshots, that kind of cool stuff
-
View User Profile
-
Send Message
Posted Oct 5, 2013@Lolmewn
Well, as you said its DEV everything is expected. Im looking forward to try out new "fixed" one :)
-
View User Profile
-
Send Message
Posted Oct 5, 2013@ha11oga11o
weird sh*t. I guess I could just take that code out anyway, since I "fixed" it event-wise anyway.
-
View User Profile
-
Send Message
Posted Oct 5, 2013@Lolmewn
Here it is:
http://pastebin.com/d0FbftYf
-
View User Profile
-
Send Message
Posted Oct 5, 2013@ha11oga11o
That's... weird. The code should only be called when that config value is true (it defaults to false).
-
View User Profile
-
Send Message
Posted Oct 5, 2013@Lolmewn
But it is :(
If its not breaking something mandatory ill leave it that way. And wait for another dev build :)
But srsly, LastJoin-lastLeaveFif: false is allready set.
Cheers :)
-
View User Profile
-
Send Message
Posted Oct 4, 2013@ha11oga11o
Well it is a dev build ;) set attempt lastjoin fix to false in configuration
-
View User Profile
-
Send Message
Posted Oct 4, 2013with latest dev from your jenkins i have this:
http://pastie.org/8378018
on spigot 1122
Wrong dev/spigot version, or something bad i done ... again :)
-
View User Profile
-
Send Message
Posted Oct 1, 2013@smc87
Ah, he simply forgot the quotes. Thanks for looking that up.
-
View User Profile
-
Send Message
Posted Sep 30, 2013sorry, i diddnt want to wait for the update so i had a dig around. If anyone else wants to hotfix this themselves then change line 172 in /stats_web_core/classes.php from this:
$res = mysqli_query($this->mysqli, 'SELECT SUM(amount) as amn FROM '.$this->prefix.'kill WHERE player = "'.$this->player.'" AND type = '.$type);
to this:
$res = mysqli_query($this->mysqli, 'SELECT SUM(amount) as amn FROM '.$this->prefix.'kill WHERE player = "'.$this->player.'" and type = "'.$type.'"');
Hope this helps someone
-
View User Profile
-
Send Message
Posted Sep 30, 2013Thanks for the quick response :)
-
View User Profile
-
Send Message
Posted Sep 30, 2013@kjburr
Yeah, I should probably make a ToDo list somewhere. I keep forgetting what I was going to add, haha.
@smc87
Probably a mismatched value indeed. A new web-end is underway anyway, if you go to tickets there's a ticket about it with some more information.
-
View User Profile
-
Send Message
Posted Sep 30, 2013Hello Lolmewn, I notice you say you have a problem with block place/break, i wonder if you also have a wider issue with stats in general?
I installed this plugin a few days ago and notice that PvP kills dont seem to be getting counted, however PvP deaths are being counted.
Even stranger is that the pvp kills do seem to be represented correctly in the pie chart. Mismatched variables?
Anyway i know one of my players has killed many people since the stats install and still his page shows 0 player kills, but it does represent them in the pie chart as mentioned.
Hope this is enough for you to go off.
Thanks.
-
View User Profile
-
Send Message
Posted Sep 30, 2013Could you add the option to purge old or inactive players? Also maybe just a option for a ToDo list, add the ability to sync heads with a sign, like Top Blocks Broken or Top Kills and such. Anyways I hope you like these ideas, and thanks for reading this!
-
View User Profile
-
Send Message
Posted Sep 30, 2013@crunkazcanbe
There seems to be something wrong with block breaks and places, not 100% sure what though...
-
View User Profile
-
Send Message
Posted Sep 30, 2013@Lolmewn I have the website set up you can see here www.crunk-land.is-best.com/stats anyways for some reason it want show broke and placed blocks for me or anything really just a few tables where made in the MySQL database . at first I couldnt get it to show anything but I noticed all the few tables made where in caps so I went in the config and set it to _Stats instead of _stats and now it is atleast showing me on there now just not seeing any stats . does it show the srats of ops? I have not tired playing without being op yet. btw its just a little free site hoster im using that support php since enjin doesn't . its ashamed enjin doesn't support php im even paying for the ultimate plan.
-
View User Profile
-
Send Message
Posted Sep 29, 2013@Lolmewn
Thank you. :)
-
View User Profile
-
Send Message
Posted Sep 29, 2013@BMXATVMAN14
Looks like the global stats server was trying to restart itself every second O.o Fixed it!
-
View User Profile
-
Send Message
Posted Sep 28, 2013http://pastebin.com/JYw4H31c