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 2, 2014@Duffa13
Basically 1.37 and below should use the old web-end (v1.2 for example), 1.38 and above should use the new web-end.
-
View User Profile
-
Send Message
Posted Apr 2, 2014@Zachary_DuBois
So the installer doesn't work on Firefox? Great! Explains why I couldn't get it to work ^^
Gonna try it again with Chrome when I get home :D
-
View User Profile
-
Send Message
Posted Apr 1, 2014@GodsDead
Thank you for the information, as said, it is only beta right now. I was going to add in advanced statistics in v0.2.0. This will include an entire re-write of the interface and will be much more pleasing with charts using d3js. Please keep in mind that it may take awhile for this version to come out. I will fix up the current release sometime later this week because the quarter is ending in school and that is a higher priority.
@RevoMods
Currently, the installer only works on Safari (Mac) and Google Chrome (Windows & Linux). Firefox will break a lot of the HTML5 forms that are there.
Also, we do not recommend downgrading the Stats plugin as there has been many database changes. We also no longer support WebStatsX as it is outdated and the developer cannot be contacted.
-
View User Profile
-
Send Message
Posted Apr 1, 2014@Lolmewn
Thanks for your replies I have tried a few different versions I even tried the old Stats Web_end v1.2 Release. If you could please tell me which version of the .jar I should be using and which Web version I will try another time. I'm sorry for clogging up your comments here add me to Skype bennitschke if you would prefer.
-
View User Profile
-
Send Message
Posted Apr 1, 2014@Duffa13
Latest release or latest alpha?
-
View User Profile
-
Send Message
Posted Apr 1, 2014@Lolmewn
I have a lot of ideas for this stats panel, I know HTML, CSS, PHP, Mysql and have bootstrapped many projects, I've just never used Git, If I fork the project would you be able to use amendments from my fork in the main branch? I hope that's the correct terminology.
I can't use it anyway yet, since Im using 1.3.7 still until there is a stable version of stats released that will work with autorank.
-
View User Profile
-
Send Message
Posted Apr 1, 2014@Lolmewn
I am using the latest version from Bukkit
-
View User Profile
-
Send Message
Posted Apr 1, 2014@RevoMods
You can always configure it through the config.php file. Not sure why it wouldn't work - what are your specs?
@Duffa13
What version of Stats are you using?
@GodsDead
It's only in beta right now, a lot still has to be added. We (or at least, I) want to move back to a system that uses player names instead of ID's.
As for putting in a wrong ID throwing fatal errors, that's just a bug and should be reported.
An API sounds good, although I've never actually made one. Challenge!
-
View User Profile
-
Send Message
Posted Apr 1, 2014Im not sure the best place to post this, but looking at the demo of the new web UI, there are many problems, Coming from webstatsx we loose so much information, we loose charts we loose an in-depth player statistics overview, its been completely stripped to very bare essentials.
Where is a dashboard overview of top player lists for kills, playtime etc?
The URL scheme for players is awful, The players username needs to be put into the URL instead of a unique ID number http://stats-asuna.polardrafting.com/pages/player.php?id=8 needs to be http://stats-asuna.polardrafting.com/pages/player.php?id=JPskyminer Why? Because in-game I use auto messages that say click on your stats and I can pass the players username into the URL to link them directly to their stats page, no way to do this with the unique ID, It also lets me sync this with their username on my website end, plus it just makes much more sence.
If you put a wrong unique ID in, it does no checking, it just throws fatal errors.
How about also adding a method to export data using an API so we could pull this information into other applications and scripts? If I had a json or xml api I could create a custom stats page for my external web-server.
This is all from 1min using the demo....
-
View User Profile
-
Send Message
Posted Apr 1, 2014Any idea what this error means: Fatal error: Call to a member function fetch_array() on a non-object in /var/www/SurvivalStats/inc/util.php on line 181
-
View User Profile
-
Send Message
Posted Mar 31, 2014Any idea why clicking the install button on the installer doesn't do anything, no errors, or anything at all?
-
View User Profile
-
Send Message
Posted Mar 31, 2014@Lolmewn
If want to coutinue in pm you choose. Where i find the Stats_player table? In MYSQL i only found the screenshoot i took
-
View User Profile
-
Send Message
Posted Mar 31, 2014@sinder33
Check the Stats_player table - Votes are a column in there.
-
View User Profile
-
Send Message
Posted Mar 31, 2014@Lolmewn
at least this stats don't reset: Block break, Block place, Kills , move. Found the problem: This above is in the MYSQ But Votes isn't. A way to add Votes to MYSQL? http://imgur.com/vwE0yUd
-
View User Profile
-
Send Message
Posted Mar 31, 2014@sinder33
So basically all your stats get reset when relogging? Could you check if there's data in the database, and make sure there's no stacktraces when logging in/logging out/ever?
-
View User Profile
-
Send Message
Posted Mar 31, 2014@Lolmewn
Aw broken. I voted before school when doing /lolmewnstats It stand 1 votes. Also on a sign When i got home from school it was reset. When doing /lolmewnstats and sign no data. The amount of votes a player done is reset when relogging. Joins keep staying at 1 when /lolmewnstats and Playtime get reset when relog using /lolmewnstats too. I don't care about this above but votes, even it will be nice fix them too
-
View User Profile
-
Send Message
Posted Mar 31, 2014@sinder33
Cool! Glad it works now :)
-
View User Profile
-
Send Message
Posted Mar 30, 2014Console when voting: http://pastebin.com/aBDR8fmk
Not sure but think i fixed it: Just needed to add the votes to command list? Then i got: Votes: 1.
-
View User Profile
-
Send Message
Posted Mar 30, 2014@sinder33
With 'error' I meant exception in console, actually. I'll check out how VoteRoulette handels votes though.
As for your second question, just add the Votes stat to the commandList configuration section.
-
View User Profile
-
Send Message
Posted Mar 30, 2014@Lolmewn
Latest version of Votfier i guess since last update was in 2012. Stats: version: 1.37
The reward is adding by using Voteroulette same with usernames on votes.
Know what the error is then?
question 2: Anyway add it to display amount of votes when /lolmewnstats? (can't use /stats since i got mcmoo)