Stats - made by Lolmewn

Latest plugin release: HerePlugin issue tracker: Here
Latest plugin beta: Here
Latest Fluid MC Stats: Here -Discontinued v0.1.XWebsite issue tracker: Here
Plugin source: HereWebsite source: Here

Oh noes, the plugin updated and it broke! What to do?!

Stats v2.0.0 is out, and only supports Craftbukkit builds #3034 or higher. Therefore, you have two options. Either upgrade your server to a newer craftbukkit build (which you can download from ) or you downgrade Stats to v1.38-1.37-FIX (which is the release previous to 2.0.0 which will also convert your database back to the original format).

If Stats is spitting out "NoSuchMethodException"s, where it's looking for "getUniqueId", then do one of the above.

What does this plugin do?

This plugin provides you with a server-end plugin and a website-end set of files. It writes data collected through events to a MySQL database (plugin), and reads and displays that to users (website & plugin).

How do I install this?

It's really simple! Download the plugin, and drag the jar to the 'plugins' folder of your server.
Start your server, you don't have to worry about any settings file! When you join the server (You either have to be OP or have the permission-node 'stats.config'), the automatic configurator will start. This will guide you through the configuration of the plugin from in-game!
The website is also simple to install. You can check out the forum thread for detailed instructions.
And that's all! Now you can let the plugin worry about the rest ;)
Please remember to edit your server name in, as this will be sent to the global server to track your data with

Extra functionality


There now is a side-plugin which allows you to create Achievements. You can find it here:


A new plugin allowing you to track highscores with a configurable time basis. You can find it here:


Don't have a permissions plugin? Click here!
-stats.trackAll users who have this node will have their stats tracked and uploaded.
-stats.sign.placeAllows users to place [Stats] signs.
-stats.sign.destroyAllows users to break [Stats] signs
/stats-This command shows your stats!
/stats <player>stats.view.othersThis command shows someone else's stats
/stats resetstats.reset.selfThis command resets your statistics
/stats reset <player>stats.reset.otherThis command resets <player>'s stats
/stats resetallstats.resetallThis command resets everyone's stats
/stats create <statName>stats.createCreates a new stat named <statName>. Gets saved to the player table
/stats drop <statName>stats.dropDrops the stat named <statName>. You can't drop stats generated by Stats itself. Those, you can disable in the config.
/stats add <statName> <playerName> <amount> [parameters]stats.addAdd <amount> to stat <statName> using parameters [parameters]. You can usually leave parameters blank. Parameters for all stats can be found below, under column "Variables". If you're adding to yourself, you can leave out <playerName>.
/stats set <statName> <playerName> <amount> [parameters]stats.setSame usage as /stats add, only difference is that this sets the stat to <amount> instead of adding it.

What does this plugin log?

This plugin logs all actions to a MySQL database. So, you might ask, what does it log?

Block breakAll broken blocks with their DatavaluesitemId itemData breaking
Block placeAll placed blocks with their DatavaluesitemId itemData breaking
DeathAll deaths with their causescause entity(boolean, true is safest)
KillAll kills with their causestype
MoveWalking, sailing, riding a train, on the back of a pig or by horse.type (0=walk, 1=boat, 2=train, 3=pig, 4=pig in train, 5=horse)
PlaytimeTime played in seconds
ArrowsArrows shot
Xp gainedTotal XP gained
JoinsTotal times joined
Fish catchedTotal fish Caught (Yes, I know it's caught.)
Damage takenTotal damage taken
Times kickedTotal times kicked
Tools brokenTotal Tools broken
Eggs thrownTotal eggs thrown
Items craftedTotal items crafted
OmnomnomTotal times had a snack
On fireTotal times being on fire
Words saidTotal words said
Commands doneTotal commands done
VotesTotal times voted for the server (uses Votifier)
WorldchangeTotal times worlds changed
BucketfillTotal buckets filled
BucketemptyTotal buckets emptied
BedenterTotal times bed entered
ItemdropsTotal times items dropped
ItempickupsTotal times items picked up
TeleportsTotal times teleported
ShearTotal times sheared
LastjoinThe time the player joined the server last
LastleaveThe time the player left the server last
FirstjoinTime first joined the server
PVPStreakCurrent PVP streak the player is on. Resets on death
PVPTopStreakHighest gotten PVPStreak value
MoneyAmount of money you have
TradesAmount of times traded with villagers
pvpPVP Statisticskilled (ID of player) weapon


As of Stats v1.30 (using Beta functions), you can now enable snapshots. Set snapshots.enabled to true in the config and it will be working. Explanation of the config:

KeyDefault valueDescription
enabledtrueEnables or disables the creation of Snapshots
timeToLive1WAfter a certain amount of time, old snapshots get deleted if their name is 'auto_generated snapshot'. A list of what you can use:
  • m = Minute
  • h = Hour
  • d = Day
  • W = Week
  • M = Month
  • Y = Year
interval1DThe interval at which to take a snapshot. Note that taking snapshots is done off the main thread, and shouldn't affect performance.
previousThe timestamp at which the previous snapshot was taken. Do not change this.

Disabling certain stats

You can, as of v1.26, disable stats you want in the config. You can disable any stat, just put the statname in the list. You can find all statnames up on this page.


As of 1.15, Stats now supports signs showing statistics in-game. The layout of a sign must be the following when placing it:

SignDataType can be any Stat there is. Even custom ones provided by other plugins! Check the big table above and use the Stats' name on the sign.

SignType can be either player, global, custom or rightclick.
If you use player on line 3, the name of the player of which you want his stats to display must be on line 4.
Global will take the total amount of that specific stat.
Custom signs will ask you to say an SQL query. If you don't know what this is, you probably shouldn't use it. If the query succeeds, you are asked to say some text that will end up on line 2 and 3 of the sign. This can be 30 characters max (15 per line).
rightclick signs will display the Stat value of the last player to have rightclicked the sign.

Development 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, they may or may not work at all.
Development builds for Stats can be found at my CI, over at

MCStats plugin stats

How many servers use this plugin? How many players have the benefits of this plugin?
You can see all that here:
Statistics of the global server

Stats API and dev portal

There's a small API for the plugin where you can get some data.
Here you can see how to use it.

Plugins using Stats

Configurable messages
Info board
Does your plugin hook into Stats, but is it not in the list? Send me a PM!

IRC Support

You can find me (and possibly, when I'm around, support) in my IRC channel #Lolmewn on - Chat now!


Global statistics server disclaimer

You might be wondering what the global server is tracking. Here is a list of what it logs:

  • Your server name, specified in
  • Your server port, specified in
  • All queries the plugin has sent to the local MySQL server.

What would I need your server name and port for? This is to keep track of the different servers out there. There are servers where multiple servers run on one box (same IP), with the same name, the only thing different is the port it's running on. I need it to tell the difference between both servers. If you really really don't want me to get this, then set "sendStatsToGlobalServer" to false in the config. It'll make me sad though :c


This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to

  • A unique identifier
  • The server's version of Java
  • Whether the server is in offline or online mode
  • The plugin's version
  • The server's version
  • The OS version/name and architecture
  • The core count for the CPU
  • The number of players online
  • The Metrics version

If you wish to disable this feature (/me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/PluginMetrics/


This plugin has a built-in auto-updater, which connects to BukkitDev to check for updates. If you, for some reason, wish to disable this process, you can do so by setting 'update' to false in the plugins' settings file.


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) or via this link

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Marco305 Marco305 Oct 25, 2014 at 20:18 UTC - 0 likes

    Can you please add the possibility to configure multi servers (network) linked in the web part of the plugin, instead of making one "site" for every server? It will be great. If you didn't understand what I mean, I'd like not one but multiple servers in one page (like BanManager does). Thanks in advance.

  • Avatar of Lolmewn Lolmewn Oct 25, 2014 at 18:50 UTC - 1 like

    @Absentee23: Go

    Agreed. I'm working on a new StatsAPI as we speak, so when that's becoming awesome I'll be adding the implementation for the server-mods (Bukkit/Sponge/etc). After that it's gonna be pretty simple to upgrade Highscores and Achievements and possibly add super awesome new features that I've been wanting to add since I started developing those plugins.

    @catprowler: Go

    Well, if you are looking for a sort of 'top' list, that can be found in my Highscores plugin :)

    Waiting to see what's going to become of BukkitDev. May or may not switch to a replacement if it completely dies off (which is what I presume to happen really).

  • Avatar of catprowler catprowler Oct 25, 2014 at 15:21 UTC - 0 likes

    Hi there, I was wondering if there was a command to just get 1 particular stat from a player? Like "stats kill playername". Or if there was a way to add this to your plugin? I have a website and I would like to give points to players based on the different single stats, but it needs a command to make it work? Just curious. Thank you :D

  • Avatar of Absentee23 Absentee23 Oct 25, 2014 at 02:06 UTC - 0 likes

    @Lolmewn: Go

    It'd be ideal if this was implemented in your Highscores plugin ;)


  • Avatar of Martijnie Martijnie Oct 21, 2014 at 14:38 UTC - 0 likes

    @Lolmewn: Go

    Alright thanks for the advice!

  • Avatar of Lolmewn Lolmewn Oct 21, 2014 at 14:29 UTC - 1 like

    @Martijnie: Go

    Actually, the way snapshots work is that they make a 'snapshot' of the data at that time frame. So basically, if you have 1000 playtime and a snapshot is made, it'll say 1000 playtime. Then later, when you have 2000 playtime and the next shapshot is made, it'll say 2000.

    To get the top of a month, you probably are going to have to execute multiple queries (Maybe not, idk). Get the latest taken snapshot (or the main_snapshot) and subtract the oldest snapshot (which is almost a month old), then sort them by playtime.

  • Avatar of Martijnie Martijnie Oct 21, 2014 at 13:48 UTC - 0 likes

    @Lolmewn: Go

    Alright the latest build works perfect. I have another question though hehe.

    I'm currently using this query to get the top scores of distance traveled:

    "SELECT player_id,SUM(distance) AS value FROM {$dbPrefix}move "
    . " WHERE snapshot_name='auto_generated_snapshot'"
    . " GROUP BY player_id ORDER BY SUM(distance) DESC LIMIT 10";

    And I use this config:
    enabled: true
    timeToLive: 1M
    interval: 30m
    previous: 0

    I thought this would save stats for 1 month, and save them at an interval of 30 minutes, deleting the old snapshots. However the old snapshots are not deleted (as you can see here, multiple snapshots with the same player_id:

    It means that the query I use shows distance traveled from snapshot 1 + distance traveled snapshot 2 etc. Is it right that snapshots are not deleted? Or is this a fault in my query?

    Last edited Oct 21, 2014 by Martijnie
  • Avatar of Martijnie Martijnie Oct 20, 2014 at 21:18 UTC - 0 likes

    @Lolmewn: Go

    Alright will do. Thanks for providing updates :)

  • Avatar of Lolmewn Lolmewn Oct 20, 2014 at 20:59 UTC - 0 likes

    @StillSwingin: Go

    It appears this might be the case for tables that don't have 'snapshot_time' and/or 'snapshot_name' columns. Could you printscreen the tables that you have for Stats?

    EDIT: I've improved checks for snapshots. Check out the latest dev build.

    Last edited Oct 20, 2014 by Lolmewn
  • Avatar of Lolmewn Lolmewn Oct 20, 2014 at 20:55 UTC - 0 likes

    @StillSwingin: Go

    What version?


Date created
Aug 19, 2012
Last update
Aug 22, 2014
Development stage
GNU General Public License version 3 (GPLv3)
Curse link
Recent files



Optional dependency
Achievements Reloaded