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
@Lolmewn
Ah, this makes plenty of sense! Silly mistake on my part... I'll most likely revert back just to have the In-Game Configurator. Thanks, and sorry for wasting your time!
EDIT: Seems like I'm going to have to waste a bit more of your time (I apologize in advance).
I have Stats 2.0.0 and use the Spigot Protocol Hack 1.7.9 - 1.8.
The In-Game Configurator still refuses to open, however the /stats command is working. Sometimes it stops for awhile, and begins to work again a little later.
Startup:
http://pastebin.com/QSS4ZZ4i
@DarkCrimsonFury
If you started with Stats 3 then it makes sense. There is no in-game configurator there yet. If you then go back to Stats 2 it'll have a different database layout, and Stats 2 will have no idea what to do.
@koenvuurens1
As far as I know, only BlueStats 3 works with Stats 3. Both WebStatsX (which is discontinued) and Fuild MC Stats (Which only works for Stats 2 and I'm not sure of if it'll be updated) do not work with Stats 3.
The Configuration Thingy isn't opening up when I restart my server. No commands are working. I can't use this plugin.
I have Stats V 3.0.2 DEV (I tried all previous versions back to 2.0.0 and I received the same issue for all of them.) I use Spigot 1.7 1.8 Protocol Hack
Startup:
http://pastebin.com/SQjmGLYc
Personally I really don't understand anything about this plugin, so tell me if I'm doing something really simple wrong.
@MysticCity
Yes, have the same problem. I am going to make my own webstatsx but it will be custom so I think that it dont come handy to you.
But here for the devs of the webstatx's:
Fluid MC stats doesnt work(v2.0) Tried fluid MC on Windows IIS and linux Apache2(whith php5-curl) Blue stats 2 AND 3 doesnt work(I run them on linux, no passby of the security) I used with bluestats2 stats 2 and with bluestats3 stats 3.
For the dev of this plugin:
(Dutch)En hou je werk op pijl, ik vind het echt geweldig dat je een plugin hebt gemaakt voor in een mcserver dat praat met een database! Echt geweldig man! Misschien is het handig om de problemen met de webstatx'en te overleggen met de devs daarvan dat ze de bugs kunnen fixen.
Translation from above: And keep up your work, I really like that you have made an plugin for an mcserver that talks with an database! Really awesome! Maybe is it handy to talk with the dev's of the webstatx's so that they can fix the bugs.
My server IP: play.craftnmine.nl 1.8+ Dutch/English
(the server kitpvp is using this plugin, only needing an webstatx to read out the data and make it open for public.)
Any one have an working webstatsx ???
@Lolmewn
I have this atm : Stats v3.0.1-DEV for 1.8.1 So i guess you mean the next you upload.
Btw keep on the great work man, ur freking awsome.
@Unpluggeddk
Fixed in DEV-builds.
@PowerHustlers
Depends on whether you're using Stats 2 or Stats 3 and what you mean. They'll never be separated database-storage wise.
@Lolmewn
Is there anyway to have all the info from from different world be accumulated onto one world?? or get rid of the world info to begin with? I have 4 worlds on my factions server and it is making a 4 player data's in the "player" category.
If there is anything you can guide me on please help.
@Lolmewn
I figured it out.
Though now i have a problem. Everything seems fine when i start up the server.
But whenever i type /stats the following error comes up. Edit: it is Stats 3 btw. (no issues with stats 2)
@PowerHustlers
You mean in-game? You can do this using Stats 3, not using Stats 2.
As for Bungee - you may lose the data collected between 10 seconds before leaving a server and 10 seconds after joining another server, but other than that it should be fine. In Stats 3 this issue doesn't even exist.
im new to mysql but when it counts up play time it logs in for all your worlds is there any way to get just a overall total of play time?
Also I run a bungee network. How do i collect all of my play time of all my servers and add it together??
Skype: PowerHustler
Server FactionHustlers.us
@Unpluggeddk
Where do I even link to a MySQL tutorial? Haha
@Unpluggeddk - I have some notes on how to create a database for Minecraft in MySQL / MariaDB as well as a user account for it. This tutorial explains how to do so with 3 various scopes of access: Minecraft Databases
Once you have your database and user account setup, its just a matter of plugging in the database settings in the plugin configuration. Once Stats has the location/credentials, it will create its own tables and begin populating data immediately.
LHammonds
Hi,
I really need this plugin,. but i can't get it to work.
I could really use a guide from scratch how to set up a Mysql database in minecraft. I feel like ive searched google thin for help, and the turtorial you attached seems out of date. You already made a database in the turtorial to, so im a bit lost.
So basicly i need to know the first steps to do after installing mysql workbench. Hope someone can help :)
@Chiaration
When do these messages appear? Are they even Stats related?
I keep on getting these errors :L 31.08 19:59:56 [Server] INFO Could not fetch UUID of player 'VEMA1' 31.08 19:59:55 [Server] INFO Could not fetch UUID of player 'VEMA1'
@Chiaration
Actually fixed it in recently in a Dev Build. Didn't test it though!
@Lolmewn
Do you know when PvP would be fixed :D
@ergenta
Please read: https://bitbucket.org/Lolmewn/stats/issues/237/stats-command-alias
Non of the /stats command works because I have mamma install and it takes priority. Is there a way so I can display both?