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 Aug 23, 2014@Zachary_DuBois
Thanks for the update, appreciated! :)
-
View User Profile
-
Send Message
Posted Aug 23, 2014@krustymk
No, I am just doing a lot of system changes and upgrades. Getting a nice fresh start on my systems. Fluid MC Stats has always been a past time project for me. Right now I do not have a lot of free time so it is hard for me to keep that project updated. The theme for v0.2.0 is ready and the server side script just needs to be made.
-
View User Profile
-
Send Message
Posted Aug 23, 2014Hi Zachary
Whats the score on the door regarding fluid?
All the links are broken and nothing seems to be happening...
Is it time to start looking at other stats plugins ?
-
View User Profile
-
Send Message
Posted Aug 22, 2014@MarkNZ
You need to edit the MySQL variable with the correct information.
-
View User Profile
-
Send Message
Posted Aug 22, 2014@GonzoDark
Noted, will take into account. Might just create a new table with all things crafted.
@GodsDead
Not sure yet, but right now the main command is /lolmewnstats anyway. I'll probably add a config option to either overwrite the /stats command or something like that. Idea's are welcome :D
-
View User Profile
-
Send Message
Posted Aug 22, 2014How are you dealing with the default minecraft 1.8 now shipping with a /stats command? https://mojang.com/2014/08/minecraft-1-8-pre-release-the-bountiful-update/
-
View User Profile
-
Send Message
Posted Aug 21, 2014@Zachary_DuBois Confused.. The mc config file or php config file Then what should I type?
-
View User Profile
-
Send Message
Posted Aug 21, 2014@MarkNZ
No. You need to change only the config file. Your browser is not using a proper encoding thus corrupting the config. This version of Fluid MC Stats does not clean input data from forms since this was a trial run. Just edit the config.php to what it should be.
-
View User Profile
-
Send Message
Posted Aug 20, 2014@Zachary_DuBois So I should change: $mysql_encoding = 'latin1'; To: $mysql_encoding = 'UTF-8'; ?
-
View User Profile
-
Send Message
Posted Aug 20, 2014@dhannyjsb
Great :) They are different because there is a time requirement for players to be allowed in calculation of averages to prevent biased averages. You can change that by setting this to 0 in the config.php:
$required_global_stats_time = '0';@MarkNZ
The config file and site is UTF-8. The database is latin1. Edit the config file directly with the correct details. Excerpt of config.php:
-
View User Profile
-
Send Message
Posted Aug 19, 2014@Zachary_DuBois I am using the correct charset (latin1) and the details are typed in correctly. Both webserver and minecraft server are on the same machine.
-
View User Profile
-
Send Message
Posted Aug 19, 2014Your "Items crafted - Total items crafted" title is kinda if not very misleading. As it does not track the amount of items crafted. But the "Amount of times you have crafted". So if you craft 10 spades, it can either be counted as 10 or as 1. Depending on you use shift or not. And if you craft 1 button or a stack of sticks. Then it will still just be one craft, which leads me to think it is more about "Amount of times you have crafted".
I would love to have the promised feature of being able to track the amount. (And if I am allowed to dream a bit then perhaps even type of item that is crafted.)
I might have misunderstood something. But I thought I would share :)
EDIT: I made a bug report as well.
-
View User Profile
-
Send Message
Posted Aug 19, 2014@Zachary_DuBois
Thank You, the error is gone. But why the data on different websites with in the game?
-
View User Profile
-
Send Message
Posted Aug 19, 2014@dhannyjsb
I have replied to the forum thread with some info. Let me know how that goes :)
@MarkNZ
You must be using some weird charset. Open the config.php and edit the MySQL details to match the user. Also, it is not smart to post usernames in a public place, (You should go back and censor that in your previous replies). Also, please use the forum thread for help with Fluid MC Stats so Lolmewn doesn't get bombarded with comments :)
-
View User Profile
-
Send Message
Posted Aug 19, 2014@Lolmewn No, the MySQL username is "mark" but it is just displaying it like that. The webserver is running on the same server as my Minecraft server and MySQL server.
-
View User Profile
-
Send Message
Posted Aug 19, 2014Help I can't Install to my website
-
View User Profile
-
Send Message
Posted Aug 19, 2014@mrretrus
No, I'm only working forward.
@TNTUP
It used to be global, but for more precision I added world-specific statistics. This is also useful for use in Achievements, or highscores. I don't think everyone is suddenly going to change names though :P Most of your playerbase probably won't, anyway.
@MarkNZ
Wrong username/password. Is your username for MySQL really ‘mark’ ?
-
View User Profile
-
Send Message
Posted Aug 19, 2014Hey,
I get this error on my webpage: Error loading character set latin1: mysqli_real_escape_string() might not work proper.Connect failed: Access denied for user '‘mark’'@'localhost' (using password: YES)
Everything is correctly setup and typed in. Please help me.
Thanks
-
View User Profile
-
Send Message
Posted Aug 18, 2014@Lolmewn
But, why 1.37-FIX does already logging globally but v2,0.0 does log in each world O.o?
Also, Mojang says in their blog, it may be their last week for bug fixing, and do a 1.8Pre this thursday if theres are no major issues remain in snapshots.. oh (censored) im dead because WG isn't UUID-Aware yet.
But thanks, hope to see the Stats 2.0.0 logging globally like 1.37-FIX. Can't wait because im paranoid to see 1.8 out and name changing havoc
-
View User Profile
-
Send Message
Posted Aug 18, 2014:( So this is currently not even an option. If you do add it do you plan to add it to the older 1.38 FIX so FTB servers can make use of this feature?