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
Version 1.4.1 has been submitted for approval. The updates involved:
You can also use the german localization in 1.4.0 now if you use github for downloading lang files (it is a configurable option in the configuration).
Thanks, dude.
I really like the plugin. :)
@HammerHedd
Playtime 1.4.0 was already submitted for approval, but I'll start working on a bug fix for playtime 1.4.1 :)
Rogue -
I tried to post this in a ticket, but I"m not entirely confident that it got entered...
I just wanted to let you know that there is a weird glitch in the way playtime interacts with the postal plugin for citizens http://dev.bukkit.org/bukkit-plugins/postal. It looks like it is picking up NPC actions (pressure plates or doors) and then can't log them because they aren't originating from a player. I posted the error log in the ticket, but if you didn't get it I can repost it here.
Thanks, and keep up the great plugins!
@AreQPL
As of now, the only way it prints to chat is through console. I used the scoreboard as a measure for readability and so that it wouldn't spam chat. I could add something in 1.4.1 that would allow paged browsing of the scores.
As of now, you can view up to the top ten people via /playtimetop 10
My suggestion is to make /playtimetop print results on both chat and scoreboard - on chat something like /balancetop or /money top. with pages, command /playtimetop 2..3....4... I hope you know what I mean.
Thanks for uploading 1.4 , im gonna try it right now.
I am going to be testing playtime 1.4.0 for an upwards of 4-7 days to make sure there are no bugs at all in this next release :)
@predawnia
They should! Playtime doesn't rely heavily on bukkit's api (or any for that matter), so in theory this plugin would run on most builds of craftbukkit.
Will all the updates for 1.6.2 also work on 1.5.2 because I don't intend to use a Dev CraftBukkit on my server until it is Recommended Build
Nice ;) Hope you would finish 1.4 soon
@AreQPL
I'm adding a new option the events to trigger them on login.
So if you had, for example
Then it would trigger that message upon logging in.
@1Rogue
Thanks, I think it would be enough to simply show a message about how much you spent on the server when you log in. Like with a 3 sec delay after login (configurable message and delay, and true/false). Essentials hook would propably cause a lot of work for you, so it's a better option.
@AreQPL
With the implementation of the event system, it sounds like everything on that list would be possible to do anyhow with the exception of the essentials hook, which would mostly require coding on essential's end, not mine (as far as I'm aware). I can look into it, but for now I just need to finish up the lang system and a little bit on the events.
I suggest hook to Essentials so I could add time of play in motd. Something like %playtime% that you just insert and it shows the time of play each time player log in to server. Also it might be a good idea to add reward system for reaching set hour - like 3 diamonds for being 10 h on server. Of course everything configurable. If you'd add that, you may also want to hook it under Vault so the players could get rewarded with money on server for being online a long time ;)
I'd appreciate if you could at least consider all these ideas! They would make ur plugin a lot better , at least in my opinion. Also, I wouldnt mind if you could send me on PM unfinished 1.4 version with /playtime top included!
@ThisUsernameIsMine
For the broadcasting, the way I'll have this set up will allow you to do that anyhow. The configuration (in my mind) will look something similar to this: http://pastie.org/pastes/8190043/text
As for playtime itself, I intended for it to not be reset-able. If you really want, you are able to edit the values within any of the data formats directly, but I'm debating on whether to add manual resets for timers, since that would make some data falsified.
@TristonSmith24
Is your issued fixed then?
1.3.x ~ 1.4 suggestion:
- an optional broadcasted player or server-wide message when a certain time is reached (extending Firing Console commands when a time is reached)
- command to reset a player's play-time
Nice plugin btw! :)
@1Rogue
I downloaded it right before i posted that, Not for sure
@TristonSmith24
Did you just update to 1.3.0? It fixed a bug with table creation.
I set up my sql and linked them, whenever I do /played it says 0 minutes and never changes after time passes, Did I do something wrong?