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 Jul 11, 2014@thegarfish
I will give that a look in the v0.2.0 to make sure that doesn't happen :P Sorry about that!
-
View User Profile
-
Send Message
Posted Jul 11, 2014@Lolmewn
So how would you go about fixing the issue?
Returning the value of money correctly that is.
EDIT: I use the same plugin setup as GodsDead.
-
View User Profile
-
Send Message
Posted Jul 11, 2014@GodsDead
It is stored in Essentials, but I grab it through vault to be compatible with any economy plugin. You can find the full list of move ID's in the project description, right now there's only 0-5.
-
View User Profile
-
Send Message
Posted Jul 11, 2014@Lolmewn
I use Vault and Essentials Eco, is the money data stored in vault or essentials data? Im sure looking at essentails data files that there is a clear total for that player, not world dependant.
Also is there a full list of movement type ID's, I have figured most of them out, I need all of them to create an easy to read web interface for the players (0=walk, 1=boat, 2=train, 3=pig, 4=pig in train, 5=horse) etc.
-
View User Profile
-
Send Message
Posted Jul 11, 2014I think the money issue is caused by the plugin iterating over all worlds and getting the money information from that world. However, if a money plugin doesn't support multi-worlds, I think it'll just return the same value for each world, hence making it appear to be much much more than you actually have.
-
View User Profile
-
Send Message
Posted Jul 11, 2014@thegarfish
Thanks thegarfish!
Money was the other problem I was going to bring up! The plugin itself increases the money for every player dramatically its way off!
-
View User Profile
-
Send Message
Posted Jul 11, 2014@Zachary_DuBois
That has to be a joke response, What a bitter reply to someone that's trying to help the project. Since you have obviously ignored my reply about copyright on the forum the let me remind you about this "license file" you are so anal about.
Im utterly offended at your disgusting remark Zachary_DuBois, you have a lot of growing up to do.
I have openly given you hundreds of ideas to improve this "purple and blue alpha php script" you released, you have done nothing but ignore, be rude and not update the project, so I took it into my own hands to create a much better player page for my players!
-
View User Profile
-
Send Message
Posted Jul 10, 2014@Zachary_DuBois
Whenever you use the money statistic, it counts your money individually per each world.
So player - thegarfish has $500.
Overworld = $500 Nether = $500 End = $500
It displays that you have $1500 on the website opposed to only having $500.
-
View User Profile
-
Send Message
Posted Jul 10, 2014@thegarfish
Wait, explain the issue you are having?
Also, I don't provide support to those you break a license you have to follow when using the file. Of corse v0.2.X+ will be under an MIT but, it shows no respect when people break it. If I wanted to become very technical, I could link you to here since this was under an "All Rights Reserved". So, technically speaking that is breaking a law. But I couldn't care less. Just shows no respect for creators.
-
View User Profile
-
Send Message
Posted Jul 10, 2014@Zachary_DuBois
Also, for the money option.. What would be the best way to add it to the list?
When I use the same method as the other stats, it adds up the money for each world. So, instead of the player having $700 (what he can actually use in game) it shows that he has $2100 on the website.
I understand why it does this, but what is the best way to fix it?
-
View User Profile
-
Send Message
Posted Jul 10, 2014@Zachary_DuBois
Eh, I think he did a great job still.
It looks helluva lot better with what he did, than out of the box.
(Do you make it look bad at first on purpose? I mean honestly.. The blue background is pretty bad :( ).
-
View User Profile
-
Send Message
Posted Jul 10, 2014@GodsDead
Mhmm, I don't like people who don't follow the license file so I cannot give my support on that.
"All rights reserved. You may not remove branding (AccountProductions, DevelopGravity, Lolmewn, and their respected links) or modify it other than editing the configuration.
Copyright (c) AccountProductions and Sybren Gjaltema, 2014. All rights reserved."
-
View User Profile
-
Send Message
Posted Jul 10, 2014@Zachary_DuBois
I literally just spent hours and hours re-coding the player profile page to display 100x more information in a better format! Click on a player profile :) http://piratemc.com/stats/
-
View User Profile
-
Send Message
Posted Jul 10, 2014Just a Notice About Fluid MC Stats v0.1.X:
As of today, Fluid MC Stats v0.1.X series will no longer be supported. If you have issues, please try to fix them yourself for the time being. We are working on the v0.2.0 series because the interface was fairly popular.
Thanks for your understanding
-
View User Profile
-
Send Message
Posted Jul 10, 2014@maxlehot1234
I have replied to your forum comment.
-
View User Profile
-
Send Message
Posted Jul 9, 2014@GodsDead
Doubt I'll add this. Maybe if you make a ticket I'll look it at when all other projects are done, we'll see.
@maxlehot1234
Did you enter the correct details?
-
View User Profile
-
Send Message
Posted Jul 9, 2014How can i make this work with bunjeecord? I try to add it on my creative server but the web-end say: offline , but my server work, is it normal? I use Spigot 1.7.9
-
View User Profile
-
Send Message
Posted Jul 9, 2014Request: In the PVP log, create a mysql column for the weapon name! People love to name their weapons on my server just so the kill name shows up in chat! Even better would be to store the colour codes with this!
Im creating a PVP log on my web-interface since it's non-existent at all on the web-UI and this would be awesome data to have.
-
View User Profile
-
Send Message
Posted Jul 4, 2014@Malachi21
Yep.
@Malachi21
Also yep. I think I fixed it in some commit, but maybe not everywhere. There'll be a new version "soon" anyway, so that's gonna be great.
-
View User Profile
-
Send Message
Posted Jul 3, 2014Also,
Warning: Division by zero in /home/sablecra/public_html/stats/inc/util.php on line 173 0d:0h:0m:0s
When i'm individually attempting to view stats. Is this an issue on your end?