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!

