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 Dec 5, 2014@Lolmewn
I rebooted and now it's fine.
The only error I get is still a Stats one but minor
[19:30:06 WARN]: [Stats] Couldn't connect to global server! Maybe it's offline...
Thanks...
-
View User Profile
-
Send Message
Posted Dec 5, 2014When will my ticket be replied to? I have waited 1 week now, it's okay if your busy, just wondering if you forgot about it as my server cannot work properly unless this is fixed. https://bitbucket.org/Lolmewn/stats/issue/192/new-players-get-stats-wiped-on-re-login
-
View User Profile
-
Send Message
Posted Dec 5, 2014Does this command work? /stats add pvp <playername> 1
When I run it, it seems to add 1 when I do a /stats but if I restart the server the count goes back to the value before I added 1 manually. I also checked the pvp table and the record isn't added to the table. Lastly due to it not being added to the table the "kill" isn't recognized by autorank and people are not getting ranked up.
I have tested this on cb 1.7.9 r0.1 clean install with just stats installed (so no other plugins can conflict) and still doesn't work. As a side note after running the command my console says the same null error as ticket 192.
Any advice is welcome, Thanks
-
View User Profile
-
Send Message
Posted Dec 5, 2014@chezpaul2
Not sure yet then. Please open a ticket, I suppose, or it'll get lost in the sea of comments.
@adamwbb
I guess Zachary didn't update the link yet - he moved to github.
@TNTUP
Maybe ask @GodsDead really nicely if you could be part of his pre-alpha test phase of a new web-end :P I know Zachary *should* be working on one but I haven't seen too much progress on that one.
-
View User Profile
-
Send Message
Posted Dec 4, 2014The only plugin that I haven't updated to UUID yet, because I wont update because Stats 2.0.0, theres no web frontend which I like (like used with WebStatsX) but I know someone works on it but haven't received thy answer. Lolmewn, this is the best plugin ever, tracking 4.5 of players and its fun watching my own stats.. 260 days O_O
Theres a WebUI for Stats 2.0.0 ready yet? The Fluid mcstats (which I refuse to use though) development has stopped because of bukkit drama, and ill be forced to find another stats plugin, wiping off 4.5k tracked players worth of stats since Jul 2, 2013... The only one which I haven't updated to UUID yet, not updating because it isn't compatible with WebStatsX currentely... Any advice?
-
View User Profile
-
Send Message
Posted Dec 4, 2014when will the new one be out
bitbukkit says that its no longer existant.
-
View User Profile
-
Send Message
Posted Dec 4, 2014@Lolmewn
This happens every minute on the server.
My install is extremely clean. I don't have other errors.
I take Stats out and it's gone.
Using latest Jenkins master.
-
View User Profile
-
Send Message
Posted Dec 4, 2014@chezpaul2
When does it happen? It shouldn't :S
-
View User Profile
-
Send Message
Posted Dec 3, 2014@Lolmewn
Yeah,, I give up. It just won't show up.
The address is localhost/webstatx right ?
On another subject. Ever since I installed Stats, I get this error.
[15:51:29 ERROR]: null
com.mysql.jdbc.MysqlDataTruncation Data truncation: Incorrect datetime value: '1969-12-31 16:00:00' for column 'firstjoin' at row 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3591) ~[MysqlIO.class]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525) ~[MysqlIO.class]
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986) ~[MysqlIO.class]
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140) ~[MysqlIO.class]
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626) ~[ConnectionImpl.class]
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111) ~[PreparedStatement.class]
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407) ~[PreparedStatement.class]
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325) ~[PreparedStatement.class]
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310) ~[PreparedStatement.class]
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) ~[Stats.jar]
at nl.lolmewn.stats.saver.FirstjoinSaver.save(FirstjoinSaver.java:29) ~[Stats.jar]
at nl.lolmewn.stats.api.mysql.StatsTable.updateStat(StatsTable.java:252) ~[Stats.jar]
at nl.lolmewn.stats.Main.updateStatsInDatabase(Main.java:465) [Stats.jar]
at nl.lolmewn.stats.Main.runTableUpdates(Main.java:429) [Stats.jar]
at nl.lolmewn.stats.Main$5.run(Main.java:578) [Stats.jar]
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) [CraftTask.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) [CraftAsyncTask.class:git-Cauldron-MCPC-Plus-1.7.10-1.1231.04.209]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71]
Any thoughts ?
-
View User Profile
-
Send Message
Posted Dec 3, 2014@chezpaul2
Make sure Apache is up and running. I've had issues with this too, like port 80 being in use etc. There's no need to tell anything you dumped webstatsx there, it knows.
-
View User Profile
-
Send Message
Posted Dec 3, 2014@Lolmewn
Hey thanks for helping out.
I did install Xampp yesterday and did dump WebStatX folder into the htdocs folder and edited the config.
But then nothing happens when I go to localhost/webstatx
Do I need to reload xampp ? Or tell Xampp to somehow look for the webstatx folder?
-
View User Profile
-
Send Message
Posted Dec 3, 2014@chezpaul2
You're getting close. MySQL is only a database, it doesn't actually do anything other than store/retrieve data. If you want to get a website running, you should get Xampp (You can choose to not install MySQL with it afaik. That would indeed be redundant as you already have MySQL up and running).
When you have that, there should be a folder like "htdocs" in your xampp folder, if I remember correctly. I would probably make a "stats" folder in the htdocs folder and dump all FluidMCStats files in there. Then all that's left to do is edit config.php and you're good to go :) It should then run at localhost/stats/
-
View User Profile
-
Send Message
Posted Dec 2, 2014Man, so much research just to get this plugin going.
So I got mysql going named Stats with mySqlworkbench and all.
I entered all information in minecraft and it said it successfully installed.
But now what do I do ?
Do I download Xampp ?
I'm running the latest Jenkins Stats but I cant' find anywhere the Stats_web end 1.1 that he's downloading in the video above.
What do I do now ? I'm lost.
Also, isn't installing Xampp redundant if I've already installed Oracle's mysql ?
Thanks for the help... I hope.. ;-)
EDIT: So I figured out I can use WebstatsX for the web interface. And I'm guessing that indeed Xampp is redundant.
So if I created a mysql datable with mysqlworkbench. Where do I put the WebstatsX files to ?
Am I on the right path at least ?
-
View User Profile
-
Send Message
Posted Nov 29, 2014@Lolmewn
Top man!! Cheers for the quick reply :)
-
View User Profile
-
Send Message
Posted Nov 29, 2014@Lolmewn
Created a ticket. I hope the issue can be resolved soon. Thanks for your help.
-
View User Profile
-
Send Message
Posted Nov 29, 2014@Jake7902
Then please make a ticket.
@Madwolf_hc
Nothing really, you can ignore that. Just my stats server being a big derp.
@krustymk
Stats works 100% on 1.8 without the need to do anything. Stats doesn't use NMS/OBC so it'll work on all versions.
-
View User Profile
-
Send Message
Posted Nov 29, 2014Am i right to presume that spigot 1.8 breaks this plugin? Do you plan to update it if so and an ETA? (i dont know if its a small change or large)
Cheers
-
View User Profile
-
Send Message
Posted Nov 25, 2014Thank you! Everything works fine now! Thank you so much! :)
I was wondering.. What does this mean?
" [Stats] Couldn't connect to global server! Maybe it's offline..."
This message appears sometimes
-
View User Profile
-
Send Message
Posted Nov 25, 2014@Lolmewn
I didn't add anything, I removed blocks broken, blocks placed and move.
-
View User Profile
-
Send Message
Posted Nov 24, 2014@Madwolf_hc
Log says 1.27 if I recall correctly, latest is 1.4.1. Please try again, if the issue persists, please paste your logs again.
@Jake7902
That's weird... what did you add to your commandList? (I'm pretty sure the issue is unrelated, but might as well ask).