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 Apr 14, 2013I don't believe so but I will double check. No errors from the console or in the client, is there a log i should check? The symptoms are If I op the player the stats playtime starts, if i deop, stats freeze at that number until i op them again, and then it continues where it left off when it was op. It's like the change I made in plugin.yml is being ignored. :( Any other suggestions or is it PEX time?
-
View User Profile
-
Send Message
Posted Apr 14, 2013@FreeJAC1310
Looks good, any errors?
-
View User Profile
-
Send Message
Posted Apr 13, 2013Oops! Looks like I was little quick in saying it worked.
Is my plugin.yml correct?
name: Stats main: nl.lolmewn.stats.Main version: jenkins-Stats-246 softdepend: [Votifier] description: Tracking your stats! author: Lolmewn commands: stats: usage: /<command> description: Commands for Stats permissions: status.track: default: true
-
View User Profile
-
Send Message
Posted Apr 13, 2013Hey thanks for that, helpful for sure! Yup...works! Thx
-
View User Profile
-
Send Message
Posted Apr 13, 2013@FreeJAC1310
I've just created a page for it: http://dev.bukkit.org/server-mods/lolmewnstats/pages/permissions/
-
View User Profile
-
Send Message
Posted Apr 12, 2013Alright so my stats are the only ones being tracked since I am OPs I'm assuming. How do I assign stats.track to my users without granting them OPs? I am not running any sort of permissions plugin. Does this mean I am going to have to set one up or is there a cheap and dirty way to assign this?
-
View User Profile
-
Send Message
Posted Apr 12, 2013@G_CODE649B
Yes, global or player is also needed. An example would be:
[Stats]
custom
global
Query: SELECT SUM(arrows) FROM Stats_player
This will get the total amount of arrows shot.
-
View User Profile
-
Send Message
Posted Apr 12, 2013@Lolmewn
How about the Global or Player thing? Is that also needed? Also, what's the example of the query?
Sorry for being such an annoying person, just asking some things that I don't understand with. I'm sorry for asking too much.
-
View User Profile
-
Send Message
Posted Apr 12, 2013@G_CODE649B
-
View User Profile
-
Send Message
Posted Apr 12, 2013@Lolmewn
Ok, thanks.
Example on how to use the custom signs? :)
-
View User Profile
-
Send Message
Posted Apr 11, 2013@Mike4898
Give the permission node to your users.
-
View User Profile
-
Send Message
Posted Apr 11, 2013Hi, For some reason only my staff's stats are logged.
Any idea why, and how to fix it?
Sincerly, Mike4898
-
View User Profile
-
Send Message
Posted Apr 11, 2013@G_CODE649B
Change the prefix from "stats_" to "Stats_" in the web-config.
-
View User Profile
-
Send Message
Posted Apr 11, 2013@Lolmewn
My website got an error, take a look at: http://codepvpstats.beastnode.net/
I done exactly like the instruction, edit the config.php and make the MySQL database exactly same like the config.yml in Stats folder and upload it to my website.
What does that mean? How can I fix it?
-
View User Profile
-
Send Message
Posted Apr 10, 2013@ardragoon
You have to manually specify the SQL query to get the data from the database. This is for advanced users only, I'd say.
@G_CODE649B
Currently, yes. You can already add more by using the Custom stats sign.
@niftyapple
I'll tell cynexit about it. Thanks.
-
View User Profile
-
Send Message
Posted Apr 10, 2013For anyone that would like it: One of my players has made numerous changes to the interface of the web code. You can just extract on top of what you have now and it will work.
Config included. rename it to config.php if you don't have one already and are setting this up for the first time.
@Lolmewn and @cynexit could you review and possibly implement these changes? most of them are simple formatting issues, but one minor bug was fixed.
New web end code Updated Web Code
-
View User Profile
-
Send Message
Posted Apr 10, 2013Thanks you.
-
View User Profile
-
Send Message
Posted Apr 10, 2013Is the stats list for the sign stats only that? Is there more?
-
View User Profile
-
Send Message
Posted Apr 10, 2013When i set a sign with [stats] Custom Global, The Ingame Chat says "Please say the SQL Query to geht the data from in Chat"
What does that mean?
Anyway. really really nice plugin im loving it :D thx so much for that :>
-
View User Profile
-
Send Message
Posted Apr 10, 2013@FreeJAC1310
Glad you got it working :)
Configuring in-game only works on the first launch, I might add a /stats config command to trigger it manually. If you've configured the plugin through the config.yml, there's no need to configure anything anymore though ;)