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
i tried everything, it wont work. im on 1.6.4 , i keep getting problems with missing language files, i tried your updated one, and i tried the dev build, nothing works.
im using spigot.
@r34e621fan
I'm seeing this enough now that it seems like there is an issue I have to fix. I will look into it this week and post back here when I can figure out why the lang files aren't updating appropriately. In the meantime, if you open the contents of your en_US.yml under plugins/Playtime/lang/, then replace them with the following link below, it should work.
https://raw.github.com/1Rogue/PlayTime/master/lang/1.4.1/en_US.yml
I always seem to get this error when someone joins my server, I even tried both playtime 1.4.1 and 1.4.2:
http://pastebin.com/Nj1TxVyz
I know that it has to do with a missing variable in the language file.
@HammerCraftMC
As far as that goes, I can implement it (color scheme)
@1Rogue
That's fine, but we'd really like to be able to change the color(s) of the [Playtime]. That way it's a win-win :)
Anyways, the events still aren't triggering, no matter what I seem to do. Any suggestions? I've tried IRC a few times, but I seem to be catching you AFK.
- The HammerCraft Team
@1Rogue
I am happy to report that the 1.4.2 development build is recording times again. Thank you so much for the help. I will report any bugs I or any other OP finds.
@dbnaruto
I have already deleted the lang folder, and I will try the development build right now. I also just got this list of errors when starting up a test server -> http://pastebin.com/7FEfi4jr
@dbnaruto
Can you try deleting your lang folder and see if that fixes the error?
Also, try using the development build of Playtime located here:
http://dev.bukkit.org/server-mods/playtime/pages/development/
Version 1.4.2
9/6/2013 8:55:00 PM [SEVERE] [PlayTime] null
My server has been getting this error for some time, and I noticed today (after creating a new .db file for the month) that play times are no longer being recorded. We use Sqlite to store the data, and the error message has been showing up since 1.3.0. I completely installed a fresh .jar and deleted the plugin's folder, but the error still occurs. Any idea what could be happening? Let me know if you need any files from my end :]
@HammerCraftMC
I mostly prefer to keep the Playtime prefix as-is, as it lets others know what the plugin is, which helps with referrals.
My skype is currently private, however I am on IRC on espernet.
http://webchat.esper.net/?nick=&channels=minecraftforums
My nick is "Rogue_"., you can poke me if you're having bugs. I'm available for another hour, and then again as of noon tomorrow (EDT / GMT -4)
@1Rogue
Dev version worked fine :) Thanks!
- The HammerCraft Team
P.S. Any way to change the [Playtime] prefix? That would be enormously helpful ;)
Edit: It seems that events aren't working, could you maybe add us on skype at "HammerCraftMC" so that we could troubleshoot more easily? We may have some other offers for you as well, actually. Thanks!
@HammerCraftMC
Thanks, I've fixed the jenkins server. What specific error are you getting?
@1Rogue
Hey, there seem to be no builds on your jenkins? We would really like to use this, but we're getting the same error as the other person. Any help is appreciated!
- The HammerCraft Team
@ColonelJdog
If you only want a certain group to be able to use a function, then only give the permissions you wish for a group to have. You can view a list of the permissions here:
http://dev.bukkit.org/server-mods/playtime/pages/permissions/
@bigbossksa
Please send me a pm including configuration, as well as any console logs you can get. :)
Hello guys
the plugin just stoping working after i have update it it's shows the playtime 0 sec i am sure mysql are correct 100% but it keep saying playtime 0 sec
if someone can help i would be grateful
How do you make it so certain commands can only be run if a player if is in a certain group? Like timed commands for Guests only?
@Morfarmi
Update to version 1.4.1
Edit: Ah whoops, looks like the bug is still present. I'll have a patch on the development build by the end of today.
Edit edit: You can now find the developmental build with the bug fix under the development section page.
config:
database minecraft exist and work fine with authme
@Nespeck
Hm, this has been requested a couple times now. While I'm personally against it, I suppose that I can implement it.
I LOVE PlayTime but can you make it so that PlayTimeTop no longer in the Scoreboard but the chat is displayed? (This translated with google translator because my English is bad)