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.
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.
- Download the jar file and put it in your plugin folder
- Start your server
- PlayTime has generated a config.yml in your plugins folder, customize it so it can connect to your database
- 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: http://dev.bukkit.org/server-mods/playtime/pages/development/
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
As of right now i have this running on a 1.6.4 tekkit/cauldron server :D not to bad of a plugin :D thanks.
The permissions page isn't working and I want my players to be able to know their playtime. What is the permission for /playtime? And is there a way that they can view other peoples playtime?
In reply to jojo1107MC:
seems to work when you click the pages tab at the top by sources,image.file buttons. Try also using /onlinetime as even with permissions set i have been having issues getting /playtime to work
Same problem here. [Playtime] null every 10 minutes. No idea why this is happening
I know the last update was two years ago, but will this ever be continued? Is version 2.0.0 still in development?
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..?
How is Playtime 2.0.0 coming? I'd love to use it!
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.
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.
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.
Sorry for previous reply (deleted now) wasn't awake to realise I answered in the wrong plugin as my own.
Were is my Coffee.....
Every time I run the game, I get this error:
And this is my events.yml:
Edit: It is actually working, it's just giving me a big error.
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)
If you have 1.9, do not install this. It will spam the console with errors. Please update this to 1.9!
hello, can you update for 1.8.7 ? please :) I have some errors to configure events
Known issue. in the config, you have to set your own perms its listed as noperm, ingame none of my default users can check /playtime
So this plugin keeps track of players time as expected, which I love. Something that is annoying is that the events does not work :/
Some of the events work without issue. This is at-login and online type of events. However, the most important one for me is the playtime event. This is what my events.yml is set to:
It is rather simple, after a set period of time people will be promoted using PEX and a broadcast will be displayed.
This is my config:
I left this alone for the most part and for some reason it still doesn't work :/
Please help or fix whatever is causing the events to not fire off.
Events no longer work for me, I didn't change anything they just don't work now. playtime:null
The Plugin is not work for me. The Playtime does not increase.
[19:19:45 INFO]: [PlayTime] SQL Query for update:\nINSERT INTO `playTime` (`username`) VALUES ('xxxx'), ('xxxxxx'), ('xxxxxx') ON DUPLICATE KEY UPDATE `p laytime`=`playtime`+1, `deathtime`=`deathtime`+1, `onlinetime`=`onlinetime`+1 [19:19:45 INFO]: [PlayTime] Open MySQL connections: 1 [19:19:45 ERROR]: [PlayTime] null [19:19:45 INFO]: [PlayTime] Open MySQL connections: 0
Plugin-Version: The Version is the github version. Server-Version: CraftBukkit version git-Spigot-8a983f9-e81edfc (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
A week ago, there were no errors...
If i set the AFK to false, does that mean it won't count AFK Time? @1Rogue
Config: afk: enabled: false interval: 60 timeout: 900 check-chat: true