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 Feb 24, 2014I'm using this -
<?php
$player = $stats_global->get_top_players_kill('mysql', $bonus_methods->top_limit);
while ($row = mysqli_fetch_row($player)){
echo '<tr><td class="p_name"><a class="ajax-link" href="/user/'.$row[0].'">'.$row[0].'</a></td>';
echo '<td>'.$row[1].'</td></tr>';
}
?>
To display the top kills. However it shows the mob kills as well. What must I edit to make it ONLY show player kills?
Thanks
-
View User Profile
-
Send Message
Posted Feb 24, 2014@TheMcGuider
Nono, webend. Not websend. Webend is the website backing the plugin (Currently WebStatsX, soon a new one). Since it's new, it won't have the same bugs. Plus, it's written by me this time, so it has extra sexy in it.
-
View User Profile
-
Send Message
Posted Feb 23, 2014@Lolmewn
Not really sure what Websend have to do with WebStatsX, are you referring to the websend bukkit plugin or a program/addon? And how is that helping? Sorry if I'm being nooby..
-
View User Profile
-
Send Message
Posted Feb 23, 2014@TheMcGuider
Well, new webend coming out soon anyway.
@twinfrozr33
The plugin doesn't actually reconnect itself, it lets the Apache library take care of that. My plugin just requests connections, really. An idea is to stop saving of players until a connection is back, indeed. Maybe post a ticket?
Cup of coffee is very much appreciated <3
-
View User Profile
-
Send Message
Posted Feb 23, 2014@Lolmewn
Thank you for the information, i dont like the idea of plugin's spitting error messages
in the console not that it can harm annything but i dont like the idea of it.
Possible in the near future to disable the plugin after lets say 3 fail connections?
Ill try it anyways and see how often it will disconnect from the database.
good plugin ill buy ya a cup of coffee keep on going mate.
-
View User Profile
-
Send Message
Posted Feb 23, 2014@Lolmewn
Well, everything is "Yes" now in /check but that is not but the problem. There are no players displayed on the frontpage and in Players tab it just says "Processing..." and no players are being displayed. It does detect players because it says "Numbers of players tracked .." on the front page but it seems like the plugin can't read the mysql file to display info about the players.
-
View User Profile
-
Send Message
Posted Feb 23, 2014@TheMcGuider
Just add $link_to_map = ''; to the config.php and you should be fine. Doesn't matter a lot anyway.
@twinfrozr33
If it fails on startup, the plugin won't start. If it fails while the plugin is running, it'll most likely spit errors. It will try to reconnect, however. I think.
-
View User Profile
-
Send Message
Posted Feb 23, 2014@Lolmewn
http://i.imgur.com/ttKv6kJ.png, almost everything is "Yes" without the $link_to_map, but I don't think that is important, I maybe created the website in wrong way? In /var/www I made a new folder called: stats.(my website).com and then I edited the apache2 and restarted apache2. I'm pretty sure I did everything and I have php 5.5.3.
-
View User Profile
-
Send Message
Posted Feb 23, 2014If the mysql connection is failing ? how will the plugin react on that ? Does it try to reconnect?
-
View User Profile
-
Send Message
Posted Feb 23, 2014@TheMcGuider
Go to http://<yourwebsite>/stats/check.php and see what it says.
-
View User Profile
-
Send Message
Posted Feb 22, 2014Greetings, this may be classified as of-topic but I recently installed WEBStatsX on my apache2 server and added chmod 777 to the directory where the webstatsx is (I have a linux dedicated server) and I edited the config.php file. The website is online and it detects every new player but I can't seem to view any player (it says Processing...) and on the front page there is none player displayed. Not sure what is wrong. Every reply is highly appreciated!
-
View User Profile
-
Send Message
Posted Feb 22, 2014@GodsDead
Beta 0.1.0 coming out soon. Follow the repo (https://bitbucket.org/AccountProductions/fluid-mc-stats/) if you want to keep up with updates.
-
View User Profile
-
Send Message
Posted Feb 22, 2014ETA on web interface? Im holding back on 1.37 until theres a stable webui & autorank.
Also, Killing players is not being counted? Heres my "Top Killer" http://stats.piratemc.com/single_player.php?p=Markusi13
I use GriefPrevention & Essentails, NoCheatPLus, HealthBar, One of those could be possible conflicts?
-
View User Profile
-
Send Message
Posted Feb 21, 2014@Lolmewn
Thanks for considering it. I created the ticket here.
I'm very excited at all the possibilities this could allow!
LHammonds
-
View User Profile
-
Send Message
Posted Feb 20, 2014@ursak
The idea is that the data on the signs is unchanged anyway when a player logs out, so there's no need to update signs for offline players. As for top player signs, get my Highscores plugin. It has that (or soon will have, anyway).
-
View User Profile
-
Send Message
Posted Feb 20, 2014Ah. Got how the signs works now. There isn't any plant to let the signs use the info from mysql? Atleast when it is created? As it is now you can't make a sign show a players stats unless the player is online.
I'd also love som top players signs that show the top players on the server based on what you choose (xp, kills, playtime).
I read that your latest versions of the plugin breaks the webui. The webui seems to work just fine for me.
-
View User Profile
-
Send Message
Posted Feb 20, 2014@doomlordking
You'd have to throw the Stats webend on some server that has PHP, then iframe the link.
-
View User Profile
-
Send Message
Posted Feb 19, 2014@Lolmewn
Can't since Enjin doesn't support php, unless you iframe it (does Enjin support that?)
Enjin does support iframe EX:<iframe src="http://youripaddress:8123/" width="800" height="600" /> "Dynmaps" How would i do it for stats though?
-
View User Profile
-
Send Message
Posted Feb 16, 2014@Lolmewn
THX :) , found. nice idea.
mcMMO.jar (plugin.yml)
44 mcstats:
45 aliases: [stats]
46 description: Shows your mcMMO stats and xp
-
View User Profile
-
Send Message
Posted Feb 16, 2014@minecraft7net
What you can do is open up the jars of those conflicting plugins and either change the command (if the command is stats), or remove the alias (in case of McMMO).