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 31, 2013When some people log in, i get an error like this is console from the Stats plugin http://pastebin.com/Jph3EdxY it's occurred to many people before. Deleting the stats player in the database seems to stop it...temporarily. But then it resets the players data (I tested on myself). What's the solution to stop this and prevent it from happening any more? (I do have AutoRank and your Achievements Reloaded plugin hooked up with this if that causes anything) Thanks!
-
View User Profile
-
Send Message
Posted Aug 28, 2013@BlahBerrys
Already on it :)
-
View User Profile
-
Send Message
Posted Aug 28, 2013@Lolmewn
Any chance of a more advanced API?
Custom stats please! :)
-
View User Profile
-
Send Message
Posted Aug 26, 2013@NeroTNT
Yes..
Hope this was helpful :D
-
View User Profile
-
Send Message
Posted Aug 26, 2013@BukkitSmerf
You can also create anonymous tickets without the need to login. I do check for cancelled events, but perhaps too soon. I'll change the priority around later and see if that fixes anything.
-
View User Profile
-
Send Message
Posted Aug 26, 2013I don't have time to create ticket (I don't have account on that page) So I must write that here: Please fix tracking dmg... When admin go to lava (with gm) then plugin start adding dmg to stats. Maybe you don't checking if event is canceled before add it to stats?
-
View User Profile
-
Send Message
Posted Aug 25, 2013@Lolmewn
Can you add per-world config?
I want track some stats in all worlds, but other only in some worlds.
For my, that no problem, bot others can have problems with that :( (I just create my own plugin for block some stats in some world :P )
I want track that stats in all worlds:
COMMANDS_DONE,JOINS,LASTJOIN,LASTLEAVE,TELEPORTS,PLAYTIME,TIMES_KICKED,WORDS_SAID,WORLDCHANGE
And can you add Money stats? I know that most of plugin have /money top, /balancetop commands but that will we awesome if I can create achievement for get XXX money :P
PS: StatType.OMNOMNOM :) That great name :D
-
View User Profile
-
Send Message
Posted Aug 22, 20132013-08-22 20:38:09 [SEVERE] Could not pass event EntityDamageByEntityEvent to Stats vjenkins-Stats-373 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:363) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:77) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:398) at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:427) at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:929) at net.minecraft.entity.player.EntityPlayer.func_70097_a(EntityPlayer.java:1229) at net.minecraft.entity.player.EntityPlayerMP.func_70097_a(EntityPlayerMP.java:598) at net.minecraft.entity.monster.EntityMob.func_70652_k(EntityMob.java:132) at net.minecraft.entity.monster.EntityZombie.func_70652_k(EntityZombie.java:289) at net.minecraft.entity.ai.EntityAIAttackOnCollide.func_75246_d(EntityAIAttackOnCollide.java:131) at net.minecraft.entity.ai.EntityAITasks.func_75774_a(EntityAITasks.java:123) at net.minecraft.entity.EntityLiving.func_70619_bc(EntityLiving.java:644) at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2105) at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:479) at net.minecraft.entity.monster.EntityMob.func_70636_d(EntityMob.java:41) at net.minecraft.entity.monster.EntityZombie.func_70636_d(EntityZombie.java:203) at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1938) at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:258) at net.minecraft.entity.monster.EntityMob.func_70071_h_(EntityMob.java:49) at net.minecraft.entity.monster.EntityZombie.func_70071_h_(EntityZombie.java:284) at net.minecraft.world.World.func_72866_a(World.java:2905) at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:1000) at net.minecraft.world.World.func_72870_g(World.java:2856) at net.minecraft.world.World.func_72939_s(World.java:2668) at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:865) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:845) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:318) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:741) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:625) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) Caused by: java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityDamageEvent.getDamage()I at nl.lolmewn.stats.EventListener.onEntityDamage(EventListener.java:281) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:361) ... 32 more
-
View User Profile
-
Send Message
Posted Aug 21, 2013@lolitsthad
It pulls the data from the database once, when the player logs in. This is done async, away from the main thread. It can be done, but it'd have to be requested (aka, make a ticket please.)
-
View User Profile
-
Send Message
Posted Aug 21, 2013Is there a way to check stats for offline players? Right now it just pops up the "I'm sorry, that player is offline" message. If it's just pulling the numbers from the database I don't see why the player would need to be online in order for it to check their stats.
-
View User Profile
-
Send Message
Posted Aug 21, 2013@NeroTNT
You can also /lolmewnstats, and you can put your own aliases in the plugin.yml or bukkit.yml.
-
View User Profile
-
Send Message
Posted Aug 20, 2013hmmm is there anyway to override the cmd /stats in mcmmo plugin ? i cant /stats :(
-
View User Profile
-
Send Message
Posted Aug 15, 2013I just finished a massive refractor , so I'll be testing that soon. It will mean that devs of other plugins can hook into the plugin and add their own Stats! It also means more compatibility with other plugins. Also, possible vault support for money if things work first time (probably won't as it was a huge refractor).
All devs that already hooked into stats should examine their code after the beta release as a lot of methods are now deprecated (they still kinda work but will probably removed soon)
-
View User Profile
-
Send Message
Posted Aug 12, 2013@aleksander64 This is possible but make sure that your other nodes / vps / shared hosting have access to the node with the Database. Example: Node 1 is the main node where the database is kept, node 2 has some servers that need to connect to it, you would need to allow node 2 permission on node 1 so it can connect and access / use the MySQL Database.
-
View User Profile
-
Send Message
Posted Aug 8, 2013Lolmewn,
is there any chance in future to integrate it with ChestShop? It will be really nice to have separate tab for it in web-end :)
Im pretty sure im asking to much, am i?
Thnx in advance :)
-
View User Profile
-
Send Message
Posted Aug 2, 2013I have a question.
I have bungeecord witch forwards to a server on another box "HUB" i then also have a Survival server and a creative server linked up to bungee. if i install the plugin on all the servers, and put them all to the same database. will it take stats from all the servers put together? or would it mess it up...
what i am trying to do is combine the stats of the players from multiple servers.
-
View User Profile
-
Send Message
Posted Aug 1, 2013Everyone should read and vote if they like what they see: https://bitbucket.org/Lolmewn/stats/issue/92/redo-the-entire-interface If @cynexit doesn't do them, I will pull some time to do them.
-
View User Profile
-
Send Message
Posted Jul 30, 2013Suggestion , I have another plugin that uses /stats but also other commands...
Maybe add a feature where in the config you have "use-stats: true" to make /stats override all the other commands?
-
View User Profile
-
Send Message
Posted Jul 29, 2013@Lolmewn
I've done a ticket, if you don't know how to check of NPCs you can look in this code http://dev.bukkit.org/bukkit-plugins/oppws/ this plugin knows reals players and NPCs
-
View User Profile
-
Send Message
Posted Jul 28, 2013i copied everything the video showed, and i still cant connect to the localhost/stats