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 May 18, 2014@Cajogos
Which version are you using? The description is meant for v2.0.0
@DanSpedey
Well that seems pretty obvious. "Unknown database stats" - aka either you've misconfigured the web-end or you really don't have that database
-
View User Profile
-
Send Message
Posted May 18, 2014I am getting these PHP errors when putting on my local host: http://gyazo.com/e1099cf2046f9841865a6d612e1210f7
-
View User Profile
-
Send Message
Posted May 18, 2014Everything is working fine except for the fact that the permission nodes do not seem to be working. I am using Essentials GroupManager to take care of the permissions the only command that actually works is /stats reset the rest of the commands do not work, here is the YAML code for the permission groups:
Also whenever I type /stats [ANYWORD] it adds an extra row to the Stats_player table.
Thanks in advance.
-
View User Profile
-
Send Message
Posted May 16, 2014@GodsDead
It's always better to do it offline. Stats doesn't create any copies and just attempts to convert the DB (pretty sure that should succeed anyway).
As for groups/prefix/suffix in Stats, please create a ticket. Plugins have always been able to add their own stats, the new commands just provide a way to let server admins add new stats too (only basic ones that work with numbers, so no group name since that's a String).
-
View User Profile
-
Send Message
Posted May 16, 2014Request: Pulling the players current group from groupmanager into a custom field, I noticed that you have added custom stats, which is flipping awesome, since this will now allow other plugins to use the stats system, and for modules to be created for stats. Since I use this with Autorank, players rank up, I need a way to show their ranks on their profile pages on my website, I was thinking I could do this by using the /stats set {groupname} via autorank when they rankup, but this would only be for new people when they rank-up. Any chance being able to pull the players group/prefix/suffix into stats?
-
View User Profile
-
Send Message
Posted May 16, 2014@Lolmewn
Right, gotcha, Ill do them one at a time, so I can monitor the process of each conversion. Best to do it offline on a dev server first? I was thinking about duplicating my mysql table and running the upgrade on that so if the conversion goes tits up somehow I always have my old copy there and ready to switch to!? Or does stats V2 create new tables as to not be destructive? and delete the old ones when its complete?
Then once this is smooth comes implementing the web UI to work with my wordpress theme. I think I need to find a way to send copies of my MC database to my Web database so that I can develop a proper front-end, instead of using Iframes to "drop" stats onto my website, I hate using Iframes, makes me feel dirty.
-
View User Profile
-
Send Message
Posted May 16, 2014@GodsDead
I suggest dropping in new 1.7.9 (either Spigot/CB), dropping in Stats v2.0.0 (under review right now) and dropping in AutoRank update too. You can do this all at once, even. Don't forget to make a backup!
And yes, v2.0.0 is 1.7.9 and up only. 1.3.7 will also work on 1.7.9 but will not keep someones stats when they change their name.
-
View User Profile
-
Send Message
Posted May 16, 2014Ahoy! I noticed that Autorank is supporting stats 2.0.0? Which sounds like a good time for me to update everything! Im still on Spigot 1.7.5 for best support of plugins at present, plugins are starting to catch up with 1.7.9, which is dandy.
Do you recommend a process for upgrading stats? I was thinking about doing a Spigot 1.7.5 to 1.7.9, Then after that, do a stats upgrade from 1.3.7 to the latest, then from that update Autorank. Im currently on 1.3.7 of stats and Beta 2.9.1 of autorank.
Is there a non-dev stats v2.0.0 in approval from bukkit? is it 1.7.9 only? So I would have to update stats after updating to 1.7.9, and does the current 1.3.7 work with 1.7.9?
-
View User Profile
-
Send Message
Posted May 15, 2014Stats v2.0.0 is now in the queue and awaiting approval!
@TNTUP
Nope, sorry.
-
View User Profile
-
Send Message
Posted May 13, 2014Converter Inquisitor to Stats available?
-
View User Profile
-
Send Message
Posted May 11, 2014@AngelopoulosfilmsYT
That's not very nice...
-
View User Profile
-
Send Message
Posted May 11, 2014@AngelopoulosfilmsYT
... care to elaborate?
-
View User Profile
-
Send Message
Posted May 10, 2014Worst plugin EVER!
-
View User Profile
-
Send Message
Posted May 10, 2014@tremby90
That you should either update your Bukkit version or downgrade your Stats version.
-
View User Profile
-
Send Message
Posted May 9, 2014whats this mean
java.lang.NoSuchMethodError: org.bukkit.OfflinePlayer.getUniqueId()Ljava/util/UUID; 3:34:16 PM CONSOLE: WARN]: [Stats] Task #62 for Stats v2.0.0-SNAPSHOT-186 generated an exception 3:34:17 PM CONSOLE: WARN]: Exception in thread "pool-3-thread-176" 3:34:17 PM CONSOLE: WARN]: org.apache.commons.lang.UnhandledException: Plugin Stats v2.0.0-SNAPSHOT-186 generated an exception while executing task 61 3:34:17 PM CONSOLE: java.lang.NoSuchMethodError: org.bukkit.OfflinePlayer.getUniqueId()Ljava/util/UUID; 3:34:17 PM CONSOLE: WARN]: [Stats] Task #62 for Stats v2.0.0-SNAPSHOT-186 generated an exception 3:34:18 PM CONSOLE: WARN]: Exception in thread "pool-3-thread-177" 3:34:18 PM CONSOLE: WARN]: org.apache.commons.lang.UnhandledException: Plugin Stats v2.0.0-SNAPSHOT-186 generated an exception while executing task 61 3:34:18 PM CONSOLE: java.lang.NoSuchMethodError: org.bukkit.OfflinePlayer.getUniqueId()Ljava/util/UUID; 3:34:18 PM CONSOLE: WARN]: [Stats] Task #62 for Stats v2.0.0-SNAPSHOT-186 generated an exception 3:34:19 PM CONSOLE: WARN]: Exception in thread "pool-3-thread-178" 3:34:19 PM CONSOLE: WARN]: org.apache.commons.lang.UnhandledException: Plugin Stats v2.0.0-SNAPSHOT-186 generated an exception while executing task 61 3:34:19 PM CONSOLE: java.lang.NoSuchMethodError: org.bukkit.OfflinePlayer.getUniqueId()Ljava/util/UUID; 3:34:19 PM CONSOLE: WARN]: [Stats] Task #62 for Stats v2.0.0-SNAPSHOT-186 generated an exception 3:34:20 PM CONSOLE: WARN]: [Stats] Task #62 for Stats v2.0.0-SNAPSHOT-186 generated an exception 3:34:20 PM CONSOLE: WARN]: Exception in thread "pool-3-thread-179" 3:34:20 PM CONSOLE: WARN]: org.apache.commons.lang.UnhandledException: Plugin Stats v2.0.0-SNAPSHOT-186 generated an exception while executing task 61 3:34:20 PM CONSOLE: java.lang.NoSuchMethodError: org.bukkit.OfflinePlayer.getUniqueId()Ljava/util/UUID; 3:34:21 PM CONSOLE: WARN]: Exception in thread "pool-3-thread-175"
-
View User Profile
-
Send Message
Posted May 8, 2014@LHammonds
haha, awesome! I have no idea how I do it either ;) I just use my magic wand and *tada* a plugin comes rolling out.
-
View User Profile
-
Send Message
Posted May 8, 2014@Lolmewn I doubt many people realize just how cool or powerful this one feature is! It is going to overused on my server to the extreme. LoL (pun intended!)
The next time someone donates on my server, I gonna send some of it your way. I really appreciate everything you've done...and you do a LOT. I have no idea how you do it.
LHammonds
-
View User Profile
-
Send Message
Posted May 8, 2014AFK ignore has now been implemented as well (uses Essentials)
-
View User Profile
-
Send Message
Posted May 8, 2014@LHammonds
Yep, and it seems to be working splendidly!
-
View User Profile
-
Send Message
Posted May 8, 2014Oh cool! Just saw the commit on adding custom stats! THANKS!!!!!