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 Apr 1, 2013@Steven2282
I think old MySQL version. What version is it?
-
View User Profile
-
Send Message
Posted Apr 1, 2013This server is running CraftBukkit version git-Bukkit-1.4.7-R1.0-75-g7f25632-b2718jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.1-SNAPSHOT)
Any ideas? I have this running off of a test server, with it being the only plugin installed...
-
View User Profile
-
Send Message
Posted Mar 31, 2013@Malachi21
Because I've not added any other stats, that's what the web-end is for.
-
View User Profile
-
Send Message
Posted Mar 31, 2013@Lolmewn
So any ideas why when i type /stats it only shows "time played, blocks broken, blocks placed" but nothing else? D: It is recording all the stats in the MySQL database ._. this is weird.
-
View User Profile
-
Send Message
Posted Mar 31, 2013@UnitedFactions
I guess you mean the Pct Tick part? Yah, I guess. It's not really that bad, since it's only one tick when someone joins, but ah well.
@Zlex123
Please report it as a bug then.
@Malachi21
I'm not sure I ever heard of that issue..
-
View User Profile
-
Send Message
Posted Mar 30, 2013Hi! I did a timings thing on my server, :) with 1 person on:
Stats vjenkins-Stats-197Total: 0.19 s Pct: 0.10%
Pct Total Pct Tick Total Avg Count Vio Event
0.06% 117.57% 0.118 s 58.7827 ms 0.00k 3.17% PlayerJoinEvent
0.03% 103.59% 0.052 s 51.7941 ms 0.00k 1.59% PlayerQuitEvent
0.01% 0.03% 0.019 s 0.0162 ms 1.15k 0.00% PlayerMoveEvent
0.00% 0.02% 0.002 s 0.0098 ms 0.17k 0.00% Task: interval 20
0.00% 0.05% 0.000 s 0.0257 ms 0.01k 0.00% PlayerCommandPreprocessEvent
Could you check into that please?
-
View User Profile
-
Send Message
Posted Mar 30, 2013@lolmewn
I am OP
-
View User Profile
-
Send Message
Posted Mar 30, 2013Still confused. Is my ticket that I sent in about the only showing blocks broken and placed an actual issue that is being resolved or am I just doing something wrong?
-
View User Profile
-
Send Message
Posted Mar 30, 2013@Zlex123
Do you have the permission node?
@ha11oga11o
Dunno, works just fine on my own server, as well as on my production server. But more people are reporting this, so I guess there's a bug *somewhere*.
-
View User Profile
-
Send Message
Posted Mar 30, 2013@lolmewn
i have a problem with you plugin.It don't count anything.I have craftbukkit 1.5#2685 and Stats v1.14.It already created 5 charts.But when i type ingame /stats it says me: 00days00hours00minutes0secs.......
-
View User Profile
-
Send Message
Posted Mar 29, 2013@Lolmewn
Ok manno, but what to do with that Online issue?
See here: http://www.smrtfasizmumc.tk/
Then go to Global Stats
-
View User Profile
-
Send Message
Posted Mar 29, 2013@ha11oga11o
I think I know how to fix that.
-
View User Profile
-
Send Message
Posted Mar 29, 2013Helloo im using stats R: Stats v1.14 for 1.5.1 2 days ago with MySQL localhost and have this error from time to rime:
http://pastebin.com/scb16AJW
and on webstats i have all players online, well 90% of them but heyre not! How to fix that too?
Using WebStatsX
Thank you :)
-
View User Profile
-
Send Message
Posted Mar 29, 2013@UnitedFactions
It means it can't set the connection to use old_alter_table, which is needed to set some indexes. I'll put it between try{}catch{} in a next release, to suppress the error.
@thejackstur
It's the website backend.
-
View User Profile
-
Send Message
Posted Mar 28, 2013also what is the web end?
-
View User Profile
-
Send Message
Posted Mar 28, 2013@Lolmewn
5.0.96-community
why? it still works though, what does the error mean :O
I didnt have it on the old versions =/
-
View User Profile
-
Send Message
Posted Mar 28, 2013@UnitedFactions
What MySQL version are you using? You might want to upgrade.
-
View User Profile
-
Send Message
Posted Mar 28, 20132013-03-28 14:22:35 | [Stats] Enabling Stats vjenkins-Stats-197
2013-03-28 14:22:35 | [SEVERE] null
2013-03-28 14:22:35 | [???] java.sql.SQLException Unknown system variable 'old_ alter_table'
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.SQLError.createSQLException(SQLErr or.java:1073
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.j ava:3593)
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.j ava:3525)
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1 986)
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.jav a:2140)
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionI mpl.java:2620
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionI mpl.java:2570
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.StatementImpl.execute(StatementImp l.java:779)
2013-03-28 14:22:35 | [???] at com.mysql.jdbc.StatementImpl.execute(StatementImp l.java:622)
2013-03-28 14:22:35 | [???] at nl.lolmewn.stats.MySQL.checkIndexes(MySQL.java:15 3)
2013-03-28 14:22:35 | [???] at nl.lolmewn.stats.MySQL.<init>(MySQL.java:30)
2013-03-28 14:22:35 | [???] at nl.lolmewn.stats.Main.onEnable(Main.java:74)
2013-03-28 14:22:35 | [???] at org.bukkit.plugin.java.JavaPlugin.setEnabled(Java Plugin.java:217
2013-03-28 14:22:35 | [???] at org.bukkit.plugin.java.JavaPluginLoader.enablePlu gin(JavaPluginLoader.java:457
2013-03-28 14:22:35 | [???] at org.bukkit.plugin.SimplePluginManager.enablePlugi n(SimplePluginManager.java:383
2013-03-28 14:22:35 | [???] at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPl ugin(CraftServer.java:305
2013-03-28 14:22:35 | [???] at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enable Plugins(CraftServer.java:287
2013-03-28 14:22:35 | [???] at net.minecraft.server.v1_5_R2.MinecraftServer.j(Mi necraftServer.java:309
2013-03-28 14:22:35 | [???] at net.minecraft.server.v1_5_R2.MinecraftServer.e(Mi necraftServer.java:288
2013-03-28 14:22:35 | [???] at net.minecraft.server.v1_5_R2.MinecraftServer.a(Mi necraftServer.java:248
2013-03-28 14:22:35 | [???] at net.minecraft.server.v1_5_R2.DedicatedServer.init (DedicatedServer.java:154
2013-03-28 14:22:35 | [???] at net.minecraft.server.v1_5_R2.MinecraftServer.run( MinecraftServer.java:387
2013-03-28 14:22:35 | [???] at net.minecraft.server.v1_5_R2.ThreadServerApplicat ion.run(SourceFile:573)
2013-03-28 14:22:36 | [Stats] Version jenkins-Stats-197, or 1.14 enabled!
-
View User Profile
-
Send Message
Posted Mar 28, 2013@thejackstur
You already can via the web-end. If you mean in-game, sure. Make a ticket about it and I'll add it.
-
View User Profile
-
Send Message
Posted Mar 27, 2013will it ever be made so you can check other peoples stats??