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
- Show the date the player joined
If you want, take a look at the english version here:
You can either submit a PR or pm me a russian version if you'd like. I'd happily incorperate it.
Soon I will translate this plugin into russian
Already added, the event system allows for this. For example:
It's all outlined in the configuration explanations :)
Could you add automatic group promotion (supporting PEX) with play time?
Interesting, do you mind pm'ing me a full configuration (minus sql credentials), or even opening a public issue here?: https://github.com/1Rogue/PlayTime/issues?state=open
I should be able to figure it out, it may be something else on the server so I'll test it locally with your copy. I would also need version information for the server and the playtime build you are using.
We just installed this plugin on our new Factions PvP Server, but it seems like the afk isn't working. I know one of my kids was afk most of the day today to get his faction power up, and he is now showing as the playtimetop with 10 hours.
Here is my config set to disable counting after 3 mins of afk:
Is there something I'm doing wrong, or is the afk part just not working. Since we are a new server and lots of players afk their farms, I don't want to kick players who are afk. But, I also don't want to count that play time towards rewards.
I appreciate any help!
What you're specifying sounds like an afk-timer. Playtime does offering tracking of afk in order to stop counting time for people who don't move after x seconds.
And yes, it's compatible with 1.7.2
its running on my 1.7.2 server and seems to be running fine
Can you add a feature that it will alert player when they played every one hour (per session), so that I can alert then they need to do some movement every hour, thank you :)
Is this working for MC 1.7.2? Or do have to wait for 1.5.0 release.
Are you this ticket?: https://github.com/1Rogue/PlayTime/issues/43
Otherwise, try to make a ticket there and I can help to resolve the issue. More than likely it's a configuration issue, but if not I'll write a fix for it before the 1.5.0 release.
Also there is no debug level 4, but it will auto-set to 3 ;)
This is already possible with the events system, you can register it to do a console command however you like.
I cant seem to get any events on playtime going.
I have 3 events on online time, and the default to notify on login is working, but mine refuses to do so. I've set debug level 4 and watched strictly the database...
Hey, great plugin. i havnt used it but heres a sugjestion: make it so when a player reaches a cirtain time played on the server, make him rankup/alert staff that he has played enough to rankup
Not possible at the current moment, I'll look into it for 1.5.0
can you please Add total play time this Week and month :) Cheers :)
Check where you are hooking into the plugin. Also, if afk-checking is disabled then the PlayerHandler isn't even loaded (as the plugin won't use it).
If you have further questions feel free to PM me.
I can look into adding permissions for events
Please add a permission to bypass the time counting. If i am admin i don't want receive the event.
Hello, i'm a developer and I wanna hook into your plugin. But if I get your plugin I can get the PlayerHandler and then players but it returns 0 size list of players and if I ask for my PlaytimePlayer object, it returns null :( It would be nice to tell me how to get a player's play time correctly as I saw if I can get the PlaytimePlayer object I can ask for many properties.
It would only occur for people who would newly meet the standards.