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 May 10, 2013@Arton123
It works with all versions of Craftbukkit.
-
View User Profile
-
Send Message
Posted May 10, 2013Does this plugin exist on 1.4.7?
-
View User Profile
-
Send Message
Posted May 10, 2013@ha11oga11o
1.26 is in the queue, which fixes that. Was a silly mistake by me.
@EpicTrance
Hmm, that's weird. Looking into it.
-
View User Profile
-
Send Message
Posted May 10, 2013I have this error http://pastebin.com/zXSKLG1z
With R: Stats v1.25 for 1.5.2 11 hours ago
and
git-Bukkit-1.5.2-R0.1-b2771jnks (MC: 1.5.2)
Seems when i restarted server i got auto-update (seen dld) and after that i have err. Then i manually dld it from link above - same thing when starting server.
What to do?
Thank you :)
Edit: Ubuntu 64bit - java 7 64bit also
-
View User Profile
-
Send Message
Posted May 10, 2013this happens on sign destroy on stats CB 1.5.2 : http://pastebin.com/M4d6ims1
-
View User Profile
-
Send Message
Posted May 10, 2013@Arton123
If mcpc uses the Bukkit event system and such, probably. Try it out, I'd say ;)
-
View User Profile
-
Send Message
Posted May 10, 2013Would this work with mcpc+/1.4.7 ?
-
View User Profile
-
Send Message
Posted May 5, 2013@twmas
Please read BEFORE commenting
This.
-
View User Profile
-
Send Message
Posted May 5, 2013PLEASE HELP !!!!!! I GET THIS ERROR
2013-05-05 16:41:46 [SEVERE] Error occurred while disabling Stats vjenkins-Stats-326 (Is it up to date?) java.lang.NullPointerException at nl.lolmewn.stats.Main.onDisable(Main.java:60) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:481) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400) at nl.lolmewn.stats.Main.onEnable(Main.java:93) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R3.MinecraftServer.j(MinecraftServer.java:304) at net.minecraft.server.v1_5_R3.MinecraftServer.e(MinecraftServer.java:283) at net.minecraft.server.v1_5_R3.MinecraftServer.a(MinecraftServer.java:243) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 2013-05-05 16:41:46 [INFO] [Achievements] Enabling Achievements vjenkins-Achievements-28 2013-05-05 16:41:46 [SEVERE] Error occurred while enabling Achievements vjenkins-Achievements-28 (Is it up to date?) java.lang.NoClassDefFoundError: nl/lolmewn/stats/api/StatsAPI at nl.lolmewn.achievements.Main.onEnable(Main.java:42) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R3.MinecraftServer.j(MinecraftServer.java:304) at net.minecraft.server.v1_5_R3.MinecraftServer.e(MinecraftServer.java:283) at net.minecraft.server.v1_5_R3.MinecraftServer.a(MinecraftServer.java:243) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.ClassNotFoundException: nl.lolmewn.stats.api.StatsAPI at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 12 more 2013-05-05 16:41:46 [INFO] Server permissions file permissions.yml is empty, ignoring it 2013-05-05 16:41:46 [INFO] Done (6,687s)! For help, type "help" or "?" 2013-05-05 16:42:21 [INFO] CONSOLE: Stopping the server..[m 2013-05-05 16:42:21 [INFO] Stopping server 2013-05-05 16:42:21 [INFO] [Achievements] Disabling Achievements vjenkins-Achievements-28 2013-05-05 16:42:21 [SEVERE] Error occurred while disabling Achievements vjenkins-Achievements-28 (Is it up to date?) java.lang.NullPointerException at nl.lolmewn.achievements.Main.onDisable(Main.java:29) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:481) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400) at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.disablePlugins(CraftServer.java:277) at net.minecraft.server.v1_5_R3.MinecraftServer.stop(MinecraftServer.java:334) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:441) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
-
View User Profile
-
Send Message
Posted May 3, 2013real cool plugin, can`t wait for the update. keep up the good work
-
View User Profile
-
Send Message
Posted May 2, 2013@rudolf323
@Lice23
Fixed in 1.24 (awaiting approval)
-
View User Profile
-
Send Message
Posted May 2, 2013@rudolf323
Looking into that.
-
View User Profile
-
Send Message
Posted May 2, 2013walked distance is not logging, stats_move table is empty..
-
View User Profile
-
Send Message
Posted May 1, 2013@jessefjxm
Might be able to add that.
-
View User Profile
-
Send Message
Posted May 1, 2013Can it work with Logblock by use or extrac its data in mysql? ;)
-
View User Profile
-
Send Message
Posted Apr 30, 2013since 1.22 (and 1.23) the last-leaved bug is fixed but now is the last-joined not updating for some players
-
View User Profile
-
Send Message
Posted Apr 30, 2013@Lice23
Please make a ticket
-
View User Profile
-
Send Message
Posted Apr 30, 2013Hi . Since the latest update v1.23 is no longer stores the distance.
please help.
-
View User Profile
-
Send Message
Posted Apr 29, 2013v1.23 allows for my new plugin Achievements to hook into it.
-
View User Profile
-
Send Message
Posted Apr 28, 2013@UnitedFactions
Please post a ticket for the idea. Permissions are already in place for the command. Updating main page now.