Stats & Achievements
This Project is currently abandoned (and probably will forever be). See here for a alternative plugin
2-in-1 Stats and Achievements

This plugin logs various player activity as stats in a MySQL or SQLite database. With the integrated achievement system it is possible to award players when they reached a predefined target.
Features
- Logs block, mob, pvp and miscellaneous player statistics very detailled
- Logs also crafting statistics when spout is installed
- Integrated achievements system
- New database format which is more performant than older databases
- Integrated time delay to reduce server load and the number of SQL queries
- Planned web stats system
- Compatible with every Bukkit version since 1.1-R4
Tools
- You can convert older databases using our utility: http://89.144.25.51:8888/convert.php
- Achievements generator (will be extended soon): http://plugins.maniacraft.de/SaAPlugin/achgen
Requirements
- Vault (Permissions)
- Spout (if you want to get crafting stats)
Commands
- /stats help - General Help
- /stats [<player>] - Shows your stats or stats by <player>.
- /stats block [<player>] <block>[:<data>] - Shows stats for <block>.
- /stats pvp [<player>] [<player2>] - Shows PVP stats.
- /stats mob [<player>] [<mob>] - Shows mob damage stats.
- /achievements help - General Help
- /achievements [<player>] - Shows your obtained achievements or achievements obtained by <player>.
- /achievements list [<page>] - Lists all available achievements.
- /achievements admin add <name> <description> <category> <block> <data> <value> <command> - Adds a new achievement.
- /achievements admin remove <id> - Removes the achievement <id>.
- /achievements admin convert - Convert old achievements.
Achievement Commands
- /give <block>[:<data>] [<amount>] - gives the player the item <block> <data>
- All commands available on your server. Example (Essentials warp): /warp darkroom %player%
Permissions
| Permission | Description |
|---|---|
| stats.show.blocks.own | Show own block stats |
| stats.show.blocks.other | Show block stats by others |
| stats.show.pvp.own | Show own pvp stats |
| stats.show.pvp.other | Show pvp stats by others |
| stats.show.mob.own | Show own mob stats |
| stats.show.mob.other | Show mob stats by others |
| stats.overview.own | Show your overview |
| stats.overview.other | Show overview by others |
| stats.receive | Log stats at all (for example not for Guests) |
| achievements.receive | Gives achievements at all (for example not for Guests) |
| achievements.admin.remove | Admin Command Remove |
| achievements.admin.add | Admin Command Add |
| achievements.admin.convert | Admin Command Convert achievements from old DB |
| achievements.list | List all achievements |
| achievements.show.own | Show obtained achievements |
| achievements.show.other | Show achievements obtained by others |
Config
general: language: en # Language (Available: en/de, other languages can be added in plugins/StatsAndAchievements/lang/) update-delay: 30 # The time interval in seconds how often the stats will be updated in the database (Default and recommended: 30) achievements: true # Activating and deactivating Achievements text_color: '&6' # Color of command texts (1st color) data_color: '&7' # Color of data output (2nd color) debug: false # Debug output (Default and recommended: false) database: type: mysql # Database type, either mysql or sqlite table_prefix: '' # Table prefix to save stats of more than one server in a single database host: localhost # Only MySQL: Database server (Default: localhost) port: 3306 # Only MySQL: Database server port (MySQL default 3306) database: minecraft # Only MySQL: Database name user: root # Only MySQL: Database user password: stats123 # Only MySQL: Database password DisabledWorlds: # In this worlds the stats will be deactivated - disabledworld1 - creative listeners: blockStats: true # Block related stats brewingStats: true # Brewing related stats (maybe bugged) craftingStats: true # Crafting related stats (maybe bugged) enchantingStats: true # Enchanting related stats (maybe bugged) entityStats: true # Entity related stats playerStats: true # Player related stats (Your really should NOT disable this or you'll break everything!) playerMoveStats: true # Player move stats (if you experience lags you should set this to false) vehicleStats: true # Vehicle related stats
Language file formating
{br} - Line break
&[0-f] - Color codes (http://img109.imageshack.us/img109/4334/mccolors.png)
%[A-Z0-9]% - Internal variables, don't supposed to be translated!
-
View User Profile
-
Send Message
Posted Dec 8, 2012Hey, can someone give me an example achievement? Something like breaking 10 dirt.
-
View User Profile
-
Send Message
Posted Dec 6, 2012This worked fine on my server and then just stopped working. No errormessages or anything. Achievments just keep giving "Your inventory is full" message and if a player empty his inventory he doesn't get anything at all until his inventory is full again, then he get the same message over and over...
-
View User Profile
-
Send Message
Posted Dec 1, 2012i believe this causes my server to lag the timings produced by bukkit for this plugin are extremely high
-
View User Profile
-
Send Message
Posted Nov 26, 2012@ZwPBerserk
Sadly no. If you can find the old ones you can try to convert them.
This is a plugin that should get more attention and updates, and need a place to collect achievements for us lazy bugger to download. :P
-
View User Profile
-
Send Message
Posted Nov 25, 2012Does this already have achievements build in? Like the old version a year ago.
-
View User Profile
-
Send Message
Posted Nov 22, 2012Any chance of this getting updated to 1.4.5?
-
View User Profile
-
Send Message
Posted Oct 28, 2012One thing. I have my update value on 30, the default value. Works fine with everything except play time. Play time reloads when the player have logged off. I would like to know if there is a way to make it update with the other stats(block placed, block destroyed and all that)?
-
View User Profile
-
Send Message
Posted Sep 18, 2012Also can't get the fishing achievements working =/
-
View User Profile
-
Send Message
Posted Sep 17, 2012I'm having issues with the plugin just awarding achievements to people for no reason... After taking it live I had it reward crafting_total achievements, and enchanting_total achievements with a blank stats table in the database...
-
View User Profile
-
Send Message
Posted Sep 17, 2012another bug found: if you throw eggs, sometimes randomly you get rewarded for fishing achievements.
but, i've also reported another two bugs months ago, and still no update neither answer, like 100% of the tickets. if you don't want to update, can we have the source so we can fix ourself these errors?
-
View User Profile
-
Send Message
Posted Aug 8, 2012Will be updated someday? :D
-
View User Profile
-
Send Message
Posted Jul 27, 2012Old data in the database, like... 20 blocks of stone mined by a player that don't plays anymore 2 months ago...
Or just a command to purge old data from players... OR SOMETHING to delete data from a player...
-
View User Profile
-
Send Message
Posted Jul 27, 2012@Maluzis
'org.bukkit.plugin.UnknownDependencyException: Vault' Please install vault plugin : http://dev.bukkit.org/server-mods/vault/
-
View User Profile
-
Send Message
Posted Jul 27, 2012Warning : I ave make test with 'nolaggexamine' Your class playerMoveEvent is very laggy for big server (100 players +)
Can you put in config file to disalow all move stats ?
a simple test with 60 people

-
View User Profile
-
Send Message
Posted Jul 26, 2012Plugin doesn't work for me. Shows error in console:
-
View User Profile
-
Send Message
Posted Jul 25, 2012Getting this error every 2 minutes. What could the fault be?
-
View User Profile
-
Send Message
Posted Jul 22, 2012@Mayhem777
What do you mean with "old entries"?
-
View User Profile
-
Send Message
Posted Jul 22, 2012Anyway to clean old database entries?
-
View User Profile
-
Send Message
Posted Jul 3, 2012I've update to R2 at seems to work, i'm afraid to use R4
-
View User Profile
-
Send Message
Posted Jul 2, 2012Please add 'TAME'.