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 Jan 27, 2014Can I use this without having a MySQL? Can I store all of the stuff on my computer? Also when I start the server it says...:
[08:27:59] [Server thread/ERROR]: [Stats] Couldn't retrieve connection from pool, erroring [08:27:59] [Server thread/ERROR]: [Stats] MySQL connection failed, disabling plugin! [08:27:59] [Server thread/INFO]: [Stats] Disabling Stats v1.37-quickfix [08:28:02] [Server thread/WARN]: [Stats] Couldn't connect to global server! Maybe it's offline...
Someone please help! I really want this to work because I want to use this plugin, and also be able to use the Achievements plugin!
-
View User Profile
-
Send Message
Posted Jan 27, 2014Can anyone help me what's going on?
the SQL host said it looks like and the check.php said it's ALL good
http://stats.kamoworld.com/
but i get messed up tables??
-
View User Profile
-
Send Message
Posted Jan 25, 2014@Tunix2
Just finished exam weeks, I'll get back to development somewhere next week.
-
View User Profile
-
Send Message
Posted Jan 25, 2014Any updates on the web interface?
-
View User Profile
-
Send Message
Posted Jan 25, 2014@GodsDead
If it can't connect it disables itself. This only happens when it can't connect on plugin start though, if it for some reason looses connection it'll just spit errors and try again in 10 seconds.
As for specific stats, this is not yet implemented. Soon! :)
-
View User Profile
-
Send Message
Posted Jan 25, 2014What happens when the plugin cant connect? Does it craete a flatfile and store stats in that then sync when it connects again? Also I couldnt get boat stats to be seen using /stats Its move 1 How do I do this?
-
View User Profile
-
Send Message
Posted Jan 24, 2014@Mickeyy42
There ya go ;) That's your issue right there!
@fry1993
Just disable all other Stats. Pretty much the same. Not gonna make a separate version specifically for your needs.
@GodsDead
I know my plugin works best with local databases. Not sure what the timeout is set to for remote databases (as in, it tries to connect, and if it doesn't work within x milliseconds it errors). Maybe it's just a "lag" issue between the two servers. I'll see if I can set the delay somewhat higher.
-
View User Profile
-
Send Message
Posted Jan 24, 2014@Lolmewn
These are the events before the server stopped, The server is white-listed at present if that makes a difference. One problem might be that my database is not on the localhost, its connecting via IP to another machine in the same data center.
-
View User Profile
-
Send Message
Posted Jan 24, 2014Hi, could you make lite version of stats? Which would only register overall block-break, block-place, kill and death (with no itemData/causes)?
-
View User Profile
-
Send Message
Posted Jan 24, 2014@Lolmewn
Sorry for the panic !
I have a second server with your Stats plugin in 1.3.6 version with the same config to connect at the database... The "update" field is on "true"...
Is it certainly the cause of this issue ? :)
If the problem persist I'll tell you.
-
View User Profile
-
Send Message
Posted Jan 23, 2014@Mickeyy42
Wut. And you're sure you haven't set the same connection details somewhere else? Like, a test server? I'm kinda clueless. Guess I'll just have to come up with a fix.
-
View User Profile
-
Send Message
Posted Jan 23, 2014@Lolmewn
It's very special, when I restart my server because of the errors, all is good. Few hours later, the plugin transform the table, so I restart my server and all is good.
It's an infinity loop... Why ?
-
View User Profile
-
Send Message
Posted Jan 23, 2014@GodsDead
That's weird. Should work. Does this happen after some time or instantly when someone joins or ...?
-
View User Profile
-
Send Message
Posted Jan 23, 2014@Lolmewn
-
View User Profile
-
Send Message
Posted Jan 23, 2014@Mickeyy42
Maybe there was a "new" Stats.jar in your update folder when you replaced the file? In not, I really don't see how that can happen as none of the code in 1.37 even hint at a 'player_id' table.
-
View User Profile
-
Send Message
Posted Jan 23, 2014@Lolmewn
Oh god !
There is the same issue. :/
-
View User Profile
-
Send Message
Posted Jan 23, 2014@Lolmewn
Yes I did it this morning to solve the issue. Update field is false.
If the same issue arrive, I'll tell you.
-
View User Profile
-
Send Message
Posted Jan 23, 2014@Mickeyy42
That shouldn't happen O.o I suggest, just to be safe, to download the 1.38->1.37-FIX again and check if it finds an update. If it does, tell me, because it shouldn't.
@GodsDead
Looks like there's an issue with getting a MySQL connection from the database. You can safely ignore the last warning, it doesn't affect your performance/experience that the global server is down. What does the plugin say when starting up?
-
View User Profile
-
Send Message
Posted Jan 23, 2014Recently (after installing stats) my server has been crashing and not coming back up, the last line in all my logs before the crash are stats errors.
-
View User Profile
-
Send Message
Posted Jan 22, 2014Hello,
Waking up this morning, I checked my players ladder and I saw serveral errors who was displayed. The Stats plugin had again transformed the "player" field to "player_id".
Why ? I had the lastest version, I do not understand. :/