UserHistory
UserHistory
Accurately track how long your users spend on your server!
Version: 1.1.1 for CB 1240
GitHub: https://github.com/Raniy/UserHistory
Thanks to everyone in #bukkitdev. When you finally respond its worth the wait!
Features:
Stores a record of every connect and disconnect event, as well as keeping track of the total time your players have been with and on your server.
Informs the player how long its been since they have been seen when they connect.
The '/myage' and '/lastseen <player>' commands have been implemented
Myage tells the calling user how long they have spent on this server, and the date they were first seen.
Lastseen tells the calling user the length of time since and the date the specified player was last on the server.
Permissions:
The commands each have their own permission node
/myage - UserHistory.MyAge
/lastseen - UserHistory.LastSeen
Requires:
MySQL Database
Installation:
- Drop the jar in your plugins directory
- Reload the Plugins or Restart the server: To generate config
- Edit the UserHistory/config.yml to reflect your actual MySQL Infos
- Reload the Plugins or Restart the Server: To generate tables
- Mine your new found data horde
ToDo:
/age <player> which will functionaly be an alias of /myage that returns the data for the specified player
/loginstats <player> which will give a more verbose accounting of the players server stats
A config option to reduce the MySQL Spam. If your on a server with a large number of players (100s) you may want to wait on this as the tables could potentially grow quite fast.
Rewrite to how the plugin accesses the database. Encapsulate it better, buffer calls to it, etc
A config option to choose the database format.
PHP scripted front end demonstration: Showing possible web integration uses for the plugin.
Possibly ToDo:
Track more player events in a useful way.
History:
v1.1.1 'Now with more Source' ;)
v1.1 Fixed a bug in the player connect notifications Should have been tracking last offline time not last online time. Of course I would notice this /after/ I commit'd.
v1.0 Tested working on my private server by me. Commit'd to GitHub.
-
PreRelease: Beta 0.5 Added in MyAge and LastSeen Commands
Concept: Developed as part of the back-end for a web application I'm working on. Very specific feature set for initial release as I really only wanted at the data its pumping into that db!
-
View User Profile
-
Send Message
Posted Oct 19, 2011Excellent plugin !!
looking forward to the new version :D
-
View User Profile
-
Send Message
Posted Oct 18, 2011Hey, Great Plugin! I like the simplicity this one has. Other plugins have a lot more features than your's, but they aren't that lightweight. So keep up the good work and don't add toooo many features (It wouldn't be as lightweight anymore). Webapplcation is ok though (We all love Webapplications). This is exactly what I need for my Server!
Now I hope my post wasn't too confusing ;D
-
View User Profile
-
Send Message
Posted Oct 8, 2011@thad0ctor
Consider it done in next version.
-
View User Profile
-
Send Message
Posted Oct 8, 2011great plugin, but it needs an option to disable to MOTD portion of the plugin
-
View User Profile
-
Send Message
Posted Oct 6, 2011@N0z1
I rather like the /mytime idea. I may just end up using that. As an alias to myage though. See the reason I didnt use mytime to begin with is that the logical third party version would be /time and that is a reserved command.
Also /age <player> was already planned for the next version.
Thanks for the feedback! :)
<<edity>>Been thinking about it and I could in fact use /time <playername> and /mytime. Just need to check if the first argument evaluates to a valid player name and if it does boom, if not kick the command back to Bukkit with a return false. This behavior should keep this compatible with the default behavior, and any plugin, which uses '/time <some argument>[<some other arguments]' to change the server/world time, Probably will make it into the next version.-
View User Profile
-
Send Message
Posted Oct 6, 2011Maybe change /myage to /mytime to make it lest confusing. And also adding a /myage/time <player> would be great. Otherwise great plugin.