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
@CoWs_they_go_moo
ok thanks, let me try running it on the Latest Craftbukkit, do you have to portfoward the host 3306?
@sidekick358
I've got it running on my server! Latest Craftbukkit Dev Build :)
Can you update it to 1.6.2? or at least post a video on how to install it.When I run it,it gives me a red color PlayTime on the plugin when I do /pl and when I do /playtime nothing happens.Please help me.
This is a realy good plugin, i only have trouble giving acess to the command to all players. Not only op. I have found the config file in the "playtime.jar" but what do i change "default: op" to?
So good plungin for me
but I need one more function.
When player die then Play time Start " 0 " again. Help me plz. T T
If you attempt to look-up the playtime of an offline player it will show the "Username hasn't played for at least 1 minute!"
Also, it would be awesome if you added a config option to set a custom string, such as color.
@unlucky4ever
both on nitrado.net gameservers.
I just think its not 1.4.2 compatible.
Also, could you please recompile it for Java < 7?
I'd love to see this working on 1.4.5. This is exactly what I need and have been looking for!
@GlabbichRulz
Are the 2 servers ran on different machines?
Hey could you please update your plugin? On my 1.2.5 Tekkit Server its working but not on my 1.4.5 Bukkit one.
@drewbzz
Anyone who knows basic PHP can make this...
a good Feature Would be maybe to have a webpage to View all players Play time
kinda like logblock :) But not to do with Blocks LOLZ http://playerstatus.ozblox.net/
Text below is not spam, but several error messages in a second. We had exactly same problem with serubans plugin, but he fixed it later, at last. Only one person got recorded into sql base, rest doesnt reach the base since it is closing connection. Please fix.
20:30:09 [WARNING] [PlayTime] [PlayTime][MySQL] Error in SQL query: No operations allowed after connection closed.
20:30:09 [WARNING] [PlayTime] [PlayTime][MySQL] Error in SQL query: No operations allowed after connection closed.
20:30:09 [WARNING] [PlayTime] [PlayTime][MySQL] Error in SQL query: No operations allowed after connection closed.
20:31:09 [WARNING] [PlayTime] [PlayTime][MySQL] Error in SQL query: No operations allowed after connection closed.
20:31:09 [WARNING] [PlayTime] [PlayTime][MySQL] Error in SQL query: No operations allowed after connection closed.
20:31:09 [WARNING] [PlayTime] [PlayTime][MySQL] Error in SQL query: No operations allowed after connection closed.
version git-Bukkit-1.3.1-R2.0-24-g256c529-b2351jnks (MC: 1.3.1) (Implementing API version 1.3.1-R2.1-SNAPSHOT)
B: 1.0.1 Beta for CB 1.3.1-R1.0 Aug 12, 2012
nice bro. plz keep updateing!
Did everything right, I used same setup as logblock. When i enter /playtime (user) nothing pops up :(
Uploaded plugin. Started server. the playtime.jar was there but it did not create a config.yml folder therefore making it unable to set it up with MySQL therefore making it impossible to get the plugin to work.
You selected open source license and I cant see source code download link please add it. Also please make the plugin also Java 6. Everyone uses that...
Screenshots, Please? :)