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






-
View User Profile
-
Send Message
Posted Nov 9, 2013Just a question: If I have a 10-days old database, and configure an event, to do something for everyone, that has played longer than X hours, if I have 20 such players already, will they trigger the event, or will it be only for new players that pass the threshold?
-
View User Profile
-
Send Message
Posted Nov 5, 2013@Ernio333
Upgrade to version 1.4.3
@Shoween
I'm considering a different implementation of Playtime that would make this very simple, as of the current versions it isn't possible without a significant amount of more tracking.
-
View User Profile
-
Send Message
Posted Nov 1, 2013I have a suggestion, if you were to type /playtime (username) 1w it would show you how much that user has played in the past week, if you were to change it to 1d, it would show how much that user has played in a day, month, year etc.
-
View User Profile
-
Send Message
Posted Oct 30, 2013Bukkit MCPC+ for MC 1.6.2 - getting this error which I cant solve:
Dafuq I do?
-
View User Profile
-
Send Message
Posted Oct 24, 2013@GameplayerHD
There are already numerous plugins out there that cover the kills/death stats.
As for rewards for amount of time playing, that is actually possible with playtime already using the event system that I implemented into it.
And thanks!
-
View User Profile
-
Send Message
Posted Oct 21, 2013Kills stats, death stats? :) Thanks
Reward for amount of time playing? :D
Amazing plugin tho :D
-
View User Profile
-
Send Message
Posted Oct 16, 2013@NoHoPeLess
Not a problem, always happy to help people who can spot a bug :)
-
View User Profile
-
Send Message
Posted Oct 16, 2013@1Rogue
WOW! Thx allot!
-
View User Profile
-
Send Message
Posted Oct 16, 2013@NoHoPeLess
Thanks, looks like the german translation is unfortunately too long for the top playtimes. I've made a fix to a dev version of playtime, so this shouldn't be an issue. You can download it in the development section: http://dev.bukkit.org/server-mods/playtime/pages/development/
-
View User Profile
-
Send Message
Posted Oct 16, 2013Nice Plugin!
/playtime top or /playtime top 5 resulst in:
-
View User Profile
-
Send Message
Posted Oct 14, 2013Great plugin :)
-
View User Profile
-
Send Message
Posted Oct 11, 2013@LegndPowerdNube
Nice to see your error was fixed then :)
-
View User Profile
-
Send Message
Posted Oct 8, 2013Just used the new RB. Works like a charm!
-
View User Profile
-
Send Message
Posted Oct 8, 2013I cannot get MySQL to work. I know I have it setup correctly. Here is the error.
http://pastie.org/8388065
I am also using the latest dev build as of this post.
-
View User Profile
-
Send Message
Posted Oct 5, 2013@bobloiy
What issue are you having specifically?
-
View User Profile
-
Send Message
Posted Oct 3, 2013The plugin isn't working for 1.6.4. Not a complaint, just letting you know.
-
View User Profile
-
Send Message
Posted Oct 2, 2013From my Server log :3 I've tried out both versions of PlayTime (1.4.1, 1.4.2) but no work on my Server (Bukkit 1.6.2)
(sry if my english is bad)
-
View User Profile
-
Send Message
Posted Sep 29, 2013@Nespeck
Where are you getting this error?
-
View User Profile
-
Send Message
Posted Sep 28, 2013This Plugin doesn't work :/
Zeile 1376: 2013-09-28 18:55:49 [SEVERE] Error occurred while enabling Playtime v1.4.1 (Is it up to date?)
Zeile 1273: 2013-09-28 18:55:43 [SEVERE] null initializing Playtime v1.4.1 (Is it up to date?)
-----------------------------Zeile 1456: 2013-09-28 18:43:41 [SEVERE] Error occurred while enabling Playtime v1.4.2 (Is it up to date?)
Zeile 1453: 2013-09-28 18:43:37 [SEVERE] null initializing Playtime v1.4.2 (Is it up to date?)
Pleas Update! :(
-
View User Profile
-
Send Message
Posted Sep 25, 2013@Chriszh
Mind PM'ing me the contents of your current lang file?