PlayTime

Logo

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.

http://1ro.co/resources/playtime/main_on.pnghttp://1ro.co/resources/playtime/configuration_off.pnghttp://1ro.co/resources/playtime/commands_off.pnghttp://1ro.co/resources/playtime/permissions_off.pnghttp://1ro.co/resources/playtime/development_off.png

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:

http://dev.bukkit.org/bukkit-plugins/playtime/pages/development/#w-upcoming-features

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.

Installation

  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

Requirements

Java 6 or higher

Features

  • 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: http://dev.bukkit.org/server-mods/playtime/pages/development/

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:

http://mcstats.org/signature/playtime.png

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 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

    BalayaCraft! Server-IP server.balayacraft.de | BalayaCraft-Website | Facebook | Twitter | Youtube |

  • 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

    @1Rogue

    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).

  • Avatar of CloudeLecaw CloudeLecaw Jul 30, 2014 at 01:35 UTC - 0 likes

    <<reply 2280131>>

    Wow Nice Plugin. Cant wait for 1.5 & 2.0 =)

    Ideas:
    -Is there a way to change the Prefix and Colors?
     I would like to have a whole white chat with the Prefix of my Server not the PluginPrefix :3
     Is that possbile to create in the config or languagefile?

    - Maybe an option to remove a players data when he wasnt online for over an ammount of time.
    - We have a database that can record all if its defined in the Plugin. An Option that shows a Result
      of the ontime about a player would be nice: Something like "Online this day" "this month" "this year"...
      maybe that is possible...that would be cool =) - Curently u just can see the "Alltogetherontime" that is nice allready
      but not enough if you wanne know after a year how many players still play and how long...

    Error?
    A little error...
    in Config u said:
    Data

    Manager - What form of data storage to use

        flatfile - (Default) Stores information in a YAML named users.yml

    I have it on flatfile but it is saved in a users.db file..sounds like sqllite...
    Edit:  i read console on startup and got the answer ;)
    [14:22:17 ERROR]: [PlayTime] Flatfile Speicher ist zur Zeit defekt! Verwende SQLite...
    Seems like you allreay know about that problem.

    Sometimes the Console spamms:
    [10:23:26 ERROR]: [PlayTime] null

    I have a question about my Config:
    Some of my events dont work - could you tell me why?
    These events are:
      stundenzwanzig:
        type: playtime
        time: 1200
        at-login: false
        repeat: false
        commands:
        - 'msg %u Glueckwunsch! Deine Spielzeit auf diesem Server betraegt nun 20 Stunden!'
        - 'msg %u Du wurdest zum Stammspieler aufgestuft.'
        - 'pex user %u group set Stammspieler'
        - 'give %u 403 1 0 {ench:[{id:33,lvl:1}]}'
                                                 nothing happs if u reach the 20 Hours :(
      minutenfuenf:
        type: playtime
        time: 5
        at-login: false
        repeat: false
        commands:
        - 'msg %u Um es dir etrwas einfacher zu machen bekommst du ein wenig Brot.'
        - 'give %u 297 10'
                                                 nothing happs if u reach the 5 minutes
      nerthererlaubnis:
        type: playtime
        time: 240
        at-login: false
        repeat: false
        commands:
        - 'msg %u Du darfst nun den Nether betreten.'
        - 'pex user %u add NetherPortalRestrict.useportal'
                                                 nothing happs if u reach the 4 hours :(

    Last edited Aug 03, 2014 by CloudeLecaw
  • Avatar of 1Rogue 1Rogue Jul 23, 2014 at 20:45 UTC - 0 likes

    Expect Playtime release 1.5.0 sometime this week with UUID support, and soon after 2.0.0 should be following up with events (and a lot of other stuff) fixed!

  • Avatar of TheMuffinMon TheMuffinMon Jul 23, 2014 at 20:42 UTC - 0 likes

    when can we expect an update because I'd really like my events to work

  • Avatar of Bluerose_girl Bluerose_girl Jul 22, 2014 at 00:18 UTC - 0 likes

    @TJM4: Go

    I believe that is already integrated through playtime "events".

  • Avatar of TJM4 TJM4 Jul 20, 2014 at 13:57 UTC - 0 likes
    Great plugin but I have an idea: If a player is on the server for an amount of time they will get a reward
  • Avatar of Ryex95 Ryex95 Jul 19, 2014 at 13:39 UTC - 0 likes

    @Bluerose_girl: Go

    So thats it, i'm using on 1.7.2. Thanks for the info.

Facts

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

Authors