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 FireController1847 FireController1847 Jul 22, 2016 at 03:30 UTC - 0 likes

    I have a problem. I'm trying to run a command every 30 minutes a player plays. (So like 1hr 30 2hr 2hr 30 and so on) But every time I try it fails. How do you use the repeat option..?

    Yogbox 2.0 Official Server

  • Avatar of FireController1847 FireController1847 Jul 18, 2016 at 19:34 UTC - 0 likes

    How is Playtime 2.0.0 coming? I'd love to use it!

  • Avatar of Edge209 Edge209 Apr 23, 2016 at 02:39 UTC - 0 likes

    I don't like to go trolling on other, similar plugins looking to pull away users, but I it does look like some servers are in need of an alternative if Playtime is no longer active. It has all of the same functionality, plus much more, including UUID support, so please check out OnTime.

    http://dev.bukkit.org/bukkit-plugins/ontime/

    My plugins:

    OnTime - Playing time tracking, auto-reward system
    OnSign - Displays player online and playtime status on signs
    afkTermnator - Find/ punish players using machines to avoid AFK detection

    BFAK:90639269,cc8ede1c827ab863e33f253fde1eb070fa3a817f9e515f4fd7d7ba357cfc88da

  • Avatar of Elian1203 Elian1203 Apr 23, 2016 at 01:18 UTC - 0 likes

    I don't think the author is ever going to update the plugin. I had to make my own plugin with compatibility to convert old playtimes from this plugin to itself. I'd recommend you all get a new playtime plugin that supports UUIDs. This plugin caused my server to crash many times because of the SQLite database.

  • Avatar of Dh82 Dh82 Apr 12, 2016 at 00:11 UTC - 0 likes

    Unfortunately, the developer links do not work. Please inform me if I am the only one who is getting the "404" error code from the link.

  • Avatar of dutchy1001 dutchy1001 Apr 08, 2016 at 09:01 UTC - 0 likes

    @FireController1847: Go

    Sorry for previous reply (deleted now) wasn't awake to realise I answered in the wrong plugin as my own.

    Were is my Coffee.....

    uSkyblock: Official Website
    uSkyblock: Issue report
    Latest version download: uSkyblock Latest
    uSkyblock server: uskyblock.redirectme.net

    I'm associated with uSkyblock (v2.0.1 and upwards) but can't be held responsible for mistakes you make.

  • Avatar of FireController1847 FireController1847 Apr 08, 2016 at 03:14 UTC - 0 likes

    Every time I run the game, I get this error:

    [22:10:51] [Server thread/ERROR]: Cannot load plugins/Playtime/events.yml org.bukkit.configuration.InvalidConfigurationException: while parsing a block collection in "", line 8, column 9: - 'msg %u For playing thirty min ... ^ expected , but found Scalar in "", line 9, column 12: - 'adjustbonusclaimblocks %u 10' ^ at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) ~[YamlConfiguration.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) ~[FileConfiguration.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) ~[FileConfiguration.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:180) [YamlConfiguration.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at com.rogue.playtime.event.EventHandler.loadEvents(EventHandler.java:64) [Playtime.jar:?] at com.rogue.playtime.event.EventHandler.(EventHandler.java:47) [Playtime.jar:?] at com.rogue.playtime.Playtime.onEnable(Playtime.java:155) [Playtime.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [JavaPlugin.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:368) [JavaPluginLoader.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:410) [SimplePluginManager.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:415) [CraftServer.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:349) [CraftServer.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:500) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:474) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:434) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:335) [lt.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:620) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66] Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block collection; expected , but found Scalar at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:519) ~[ParserImpl$ParseBlockSequenceEntry.class:?] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~[ParserImpl.class:?] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) ~[ParserImpl.class:?] at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) ~[Composer.class:?] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) ~[Composer.class:?] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) ~[BaseConstructor.class:?] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[Yaml.class:?] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) ~[Yaml.class:?] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[YamlConfiguration.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] ... 17 more [22:10:51]
    

    And this is my events.yml:

    events: thirtyminutes: type: onlinetime time: 30 at-login: false repeat: true commands: - 'msg %u For playing thirty minutes, you have earned 10 bonus claim blocks! - 'adjustbonusclaimblocks %u 10'>>
    

    Any ideas?

    Edit: It is actually working, it's just giving me a big error.

    Last edited Apr 08, 2016 by FireController1847: Missed a part
  • Avatar of TheCrafterBoyGER TheCrafterBoyGER Mar 23, 2016 at 10:13 UTC - 0 likes

    It sends "Playtime:Null" every 10 Minutes. I didn't change anything... but yesterday it worked fine. Server Version: git-Spigot-db6de12-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)

  • Avatar of SalC1 SalC1 Mar 06, 2016 at 18:35 UTC - 0 likes

    If you have 1.9, do not install this. It will spam the console with errors. Please update this to 1.9!

  • Avatar of raphy123 raphy123 Jul 19, 2015 at 11:57 UTC - 0 likes

    hello, can you update for 1.8.7 ? please :) I have some errors to configure events

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
Reverse relationships
1
Downloads
27,375
Recent files

Authors