BeardStat
BeardStat is statistics tracking plugin for bukkit. It tracks a wide variety of user statistics and makes them available to your playerbase and plugins.
Recorded stats
- last Login and logout time
- Total playtime
- block placement and breaking (including sub/metadata blocks like wool, logs etc)
- Items picked up/dropped
- Damage dealt and recieved
- Kills and deaths
- Food consumed
- Sheep sheared and dyed
- TNT detonated
- Distance travelled on foot/boat/cart/horse/pig
- Items crafted
- Animals tamed
- Teleports
- Fishing
Web interface (under development)
BeardStat also comes with a web interface for stats, this allows players to view their own and friends stats on your servers website. the Web interface also includes a scoreboard system to rank players based on various statistics (playtime, creepers killed)
Commands
Stats are recorded per world, and you can blacklist worlds/gamemodes from tracking. BeardStat also has a number of commands: * /stats - access to all stats information * /played - shows a players playyime. * /laston - Returns the last time the player was on * /statpage - Allows showing a selection of player stats, useful with Bukkit's command aliasing
Dev builds
Development builds of this project can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk.
(Please note, zips in dev builds currently contain a broken implementation of the web interface, please instead download the .jar file instead. The web interface available on the right of this page) Development builds fresh from Jenkins
Issues
BeardStat has an issue tracker on github, https://github.com/tehbeard/beardstat/issues.
For error reports please include the following: * full stacktrace of the error * plugin version (inc. build number if using one from CI) * Bukkit version * Database type used (SQLite / MySQL)
Plugin integration
BeardStat provides a rich API for plugin developers to hook into BeardStat and read / record statistics.
For Developers
BeardStat stats are identifiable by a unique Id generated from 4 sub components: * Domain * World * Category * Statistic
Domain is the primary namespace for a collection of stats, the "default" domain is used by BeardStat, I ask that you use your own unique domain for your plugin (i.e. if you make a PvP arena plugin, you could use the domain "pvparena").
World represents the world in which this stat was recorded, these are for the most part the name of the world.
Two special cases exist however. "__global__" is a reserved world name, meant for stats that do not pertain to a world. The second case is "__imported__", this is a reserved world for stats that have been imported from an older version of BeardStat before per world storage was implemented.
While not intended, you can use the world id for a unique area that is not a whole world (Going back to our pvp arena example, you could use the arena names instead, such as old_forge, broken_bow instead of a world name)
Current plugins that are known to integrate BeardStat: * BeardAch - Achievements plugin * SimpleSpleef Evolution
Metrics
BeardStat includes the plugin metrics code developed by Hidendra (author of LWC), which collects anonymous information about the plugins deployment (minecraft, server, plugin version, assumed server location at country level and database type used by BeardStat, aggregated into graph form.) More information on this system, including how to disable it can be found here
@Tehbeard
Looks like that did the trick! :) thanks so much
@jaggy80
Double edit: found a few issues.
I'd recommend manually switiching the db version in config.yml to 4, then trying build 94 from the jenkins CI, it appears to be stable.
I'll be putting a build of BeardAch out with support for the latest BeardStat once I have all the major (crash) issues in BeardStat fixed, which is hopefully with this build :)
@Tehbeard
Getting an error about Google Gson not found.. 0.7 build 76
2013-11-06 09:19:10 [SEVERE] Error occurred while enabling BeardStat v0.7-SNAPSHOT-Ambrosia-git-"d660386" (Is it up to date?) java.lang.NoClassDefFoundError: com/google/gson/Gson at com.tehbeard.BeardStat.utils.mojang.api.profiles.HttpProfileRepository.<clinit>(HttpProfileRepository.java:18)
Full error: http://pastie.org/8459909
I downloaded google gson 2.2.2 and put it in the lib folder to replace the existing and doesn't have an effect.. seems to start with db version 5 BeardStat build version 75
Latest dev build seems to be working :) Thanks. BeardAch not working now, but will patiently wait for a new build
Getting "Unknown column 'uuid' in 'field list'" randomly.. think my DB didn't update properly
@Doodledew
Should be at yoursite.com/folderbeardstatisin/installer.php
@Doodledew
I got it working with the last version of the plugin and webstats. Also.. when I navigate to my website's /scoreboards.php (after the setup is done) it says that it's not able to connect to the database 0.0 Do I have to configure it somewhere in the webfolder?
When I do /stats in-game nothing shows up and when I try to connect my website to it, it can't connect 0.0 Help? D:
@alam33
I can't seem to replicate the issue.
@Tehbeard
Delete everything and install again with the last version, in the configuration change SQLite to MYSQL
@alam33
Latest build? and is this with SQLite?
Additionally what did you do on the server prior to the error so that I can try recreate this.
Also can switch on verbose and debug flags in the config and try to get this error again, so that I have some more information to track down this bug.
@Tehbeard
error : http://pastebin.com/9TNYtWb2
@alam33
build 72 on jenkins doesn't seem to be throwing errors. Uploaded to dbo and waiting on file approval.
help me
http://pastebin.com/Mqe4jvZJ
@Felina_Lain @alam33
Next build waiting on DBO approval.
I've also added a link to BeardStat's page on our build server, link in the area above. Build #68 has the fixes.
@alam33
Same problem as me kiddo, see below, he said he would fix this soon, so be patient ^^
Help me
http://pastebin.com/ejmiZewB
@Felina_Lain
gah, forgot about SQLite using slightly different syntax for inserts :/ should have fix out soon.
@Tehbeard Still having the tons of error messages showing up. I haven't changed anything but beardstat since the last reply, and I kept the web folder of the 0.6.2 version in my plugin folder too since I don't know where it was suppose to go in first place...
log for that latest attempt: http://sta.sh/017vd8l9wcjy
@Felina_Lain
Known bug, fixed in 0.6.4 builds, hoping one of which will be out in next 24 hours or so.
ok so I finally discovered that beardach need this plugin to work, and so I installed it, but I still get an error message and no achiev work here my log http://sta.sh/0tpvsv50bob (I pasted only beardach related bits but if you need more I'll paste it all)
I used the beardach editor to make the achiev', I'm using bukkit 1.6.4-R0.1 (Build #02904) beardach banana split and beardstat 0.6.2
(I didn't know what to do with the web folder I found with the .jar so I put it with the plugin >.>)
@draverev
SQLite or MySQL backend?
Edit: Nevermind found the bug, I'm also adding some more stuff to the error reporting so that it'll say which SQL code failed to run.