Playtime is a plugin for tracking numerous times for particular players. Currently within its release stage, it can track the time that a player has been online, been alive for, and how long they have played on the server in total. It currently supports three forms of data management, which are MySQL, SQLite, and flat file storage using yaml files. There is also tracking of AFK players (if you wish to enable it), and I try to keep everything within this plugin as configurable as possible. Please, if you have any type of feedback at all, don't hesitate to leave a comment! I usually try to add new ideas within a week of requesting it if I deem that it is appropriate for the plugin.

News: Playtime-2.0.0!

There are plans for an upcoming re-write of the Playtime plugin in its entirety! You can view the notes on this update at the link below:

This will add some major overhauls, including an incredible re-write of the event system, finally fixing the event system to allow for player-defined events after a certain time period.

Have questions on the update, or need help with the plugin in general? Leave a comment below or feel free to talk to me direct via IRC: #codelanx

Updating to Playtime 1.4.1+

Note that v1.4.0 introduces an event system with a few example events placed in. If you would not like any events to be used at all, simply remove everything in the events.yml file and save it as blank.


  1. Download the jar file and put it in your plugin folder
  2. Start your server
  3. PlayTime has generated a config.yml in your plugins folder, customize it so it can connect to your database
  4. Restart your server


Java 6 or higher


  • Logs PlayTime for users currently online, updates it every minute
  • Logs the PlayTime in a MySQL database
  • Looking up your own play time with a command
  • Look up up someone elses play time with a command
  • See how long since your last death
  • See how long since someone else's death
  • Stop tracking the time of AFK players
  • Flatfile support (yml files) - Deprecated, will return in the future
  • SQLite support
  • Dynamic configuration updating
  • Asynchronous data management
  • Time spent online since login
  • Other languages - Currently supported: en_US (English), de_DE (German)
  • Firing Console commands when a time is reached
  • Add top for total time played
  • Add command to switch between data managers
  • Automatic updating and version checking. This is possible to disable under the "update" section of the config. For more information, read the Configuration page

For a full list of upcoming features, feel free to look here:

Metrics Stats

Playtime uses metrics, which keeps track of information such as OS, player count, java version, and other specific information in an anonymous fashion. You can view the collected information by clicking the graph below, and it is used for any potential future development for specific groups that develop within statistics:

This can be disabled in the Metrics configuration for all plugins, under plugins/PluginMetrics/config.yml , and set "opt-out" to true. Keep in mind this will make your server not report any information, and I love stats almost as much as cats </3

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

  • Avatar of lskitto lskitto Jan 25, 2015 at 06:08 UTC - 0 likes

    Is this going to be updated for UUIDs?
    Also can anyone provide me with a Web UI?

  • Avatar of madtomic madtomic Jan 21, 2015 at 02:01 UTC - 0 likes

    v2.0 coming?

  • Avatar of devanmist devanmist Jan 13, 2015 at 01:57 UTC - 0 likes

    Is there a way to edit a player's time? I installed this plugin and everything works fine, however it obviously has only been tracking player times since it was installed. If possible I would like to be able to edit the playtime of the players on my server since some of them have played over 500 hours before this plugin was installed.

  • Avatar of NoHoPeLess NoHoPeLess Oct 20, 2014 at 17:39 UTC - 0 likes

    I think there is no support anymore for this :(

    BalayaCraft! Server-IP | BalayaCraft-Website | Facebook | Twitter | Youtube |

  • Avatar of Loresel Loresel Sep 16, 2014 at 23:44 UTC - 0 likes

    Is there still support for this plugin? I would still like to know how to stop it from freezing. My server restarts twice a day and yet it always freezes around 11 hours of running.

  • Avatar of danielzzzz danielzzzz Aug 28, 2014 at 21:14 UTC - 0 likes

    How to make that stats will be continuing after server restart ? I would like to control other Moderators how much time they spend on server.

  • Avatar of NoHoPeLess NoHoPeLess Aug 21, 2014 at 06:43 UTC - 0 likes

    After 24hours the playtime stops...

    For example: i do /playtime NoHoPeLess >> 1 hour after 10-15 Minutes i do : /playtime NoHoPeLess result in: 1 hour ...?

    When i reload the plugin (after 24h) it works normal... dont know why

  • Avatar of Wfrantastic Wfrantastic Aug 20, 2014 at 04:39 UTC - 0 likes

    Hey there :P Possible Feature?

    Do you think it will be possible to add a feature or a file where you can view a list or the whole database at once of a certain group of players like e.g. Mods, and the data associated with it?

    This would help a lot to manage one's staff on a server.

  • Avatar of pookshuman pookshuman Aug 04, 2014 at 02:54 UTC - 1 like


    Feature request for a future update. Could you add an option to NOT use the scoreboard for displaying information? Partly because I have a lot of minigames that use the scoreboard, but also because the scoreboard itself is buggy with spigot and sometimes doesn't work. Whispers, in-game screen display or console display would be fine, but an option for a text file output to the plugin directory would be ideal.

    Also, I would prefer to keep the totals private since I really don't want people to get competitive about who spends the most time on the server. I don't want a server full of afkers just trying to get the most time in.

    Other info that might be useful would be tracking of what times of day players are on the most (individually and as an aggregate.) What percentage of players are logging in for the first time, play for less than say 10 minutes and are never seen again (i.e. bounce rate) Any ability to output this to a graphable format would be even more help (everyone loves graphs and pie charts, no?) Website integration would probably be asking too much, but hey, I figured i would put it out there :)

    Keep up the good work, thanks for the consideration and good luck with the next build.

    Last edited Aug 04, 2014 by pookshuman
  • Avatar of 1Rogue 1Rogue Aug 03, 2014 at 17:32 UTC - 0 likes

    @CloudeLecaw: Go

    For 2.0.0 I plan to implement a library I've been developing for a while now (Shaded, so it won't be required for a server). With the lang system there, I will no longer be maintaining multiple languages, but users will be able to change every aspect of the plugin's output to players.

    When you see the "[Playtime] null", it sounds like Playtime is suppressing a non-specified error (which debug level 3 would show the full output of).

    Events are completely broken, and are disabled as of Playtime 1.5.0. You can expect them to make a better return in 2.0.0 which should help with fixing all of the bugs currently withstanding.

    1.5.0 is almost finished, but will require a bit of time to update the database (since it has to fetch all the UUIDs from mojang that it can't find locally).


Date created
Aug 10, 2012
Last update
Jan 21, 2014
Development stage
  • enUS
GNU General Public License version 3 (GPLv3)
Curse link
Recent files