ActivityHistory
Activity History
This plugin allows you to monitor who is active and when. If you also use Vault, it will log the permission group ratio. It will help determine who to make staff by supplying you with reliable information about who is often online when staff is needed. It has a variety of log query commands to interpret the information stored.(in development)
News:
- This plugin will be ported to vanilla, but this project is abandoned due to the shutting down of Bukkit.
- Web applet in beta!
- Group queries for SQL mode in beta!
- SQL mode released! Group queries for SQL still being developed.
- Localization feature added. If you would like to contribute a language, translate the en-us.yml file in the jar and submit it in a ticket.
- As of v0.1.3 /ahplayer will no longer work!
- Having a banner contest. Submit a ticket with the banner. If I like it, it will become the official banner and you will be added to the donor/contributor list. See here for details.
Upcoming Features:
- Converting files to yaml format
- Further develop group queries
- New way to display data (brand new mechanic!)
- Web app to show graphs of the data collected
- Automatic config updater
- Continual mode
- Ability to autokick inactive players from factions.
- Custom metrics?
- Ability to ignore afk players using essentials
- More configurables?
Current Commands:
- /ppercent <player> [start [end]] ["at" hour]: Shows the percent of online time between <start> and <end>. Restrict the search to a certain time using <hour>.
- /ptotal <player> [start [end]]: Shows the total online time between <start> and <end>.
- /phours <player> [start [end]]: Shows the percent of online time between <start> and <end> by hour.
- /ahrestore <date/time> - adds data from before the time specified from flat files to the database
Upcoming Commands:
- /online <player> <date/time> ["within" minutes] - checks records if player was online during the period specified; the within param defaults to the survey interval
- /online <player> between <date/time> <date/time> - checks records if player was online during the period specified
- /gpercent <group> [start [end]] ["at" hour]: Shows the percent of online time between <start> and <end>. Restrict the search to a certain time using <hour>.
- /staffdist [start [end]] - Shows the average percent of players that are staff during each hour of the day.
- /ahclean <date/time> - erases data from before the time specified
- /ahdump <date/time> - saves data from before the time specified to a flat file and removes it from the database
- /ahbackup <date/time> - saves data from before the time specified to a flat file without deleting it from the database
Notes:
- params in <> are required, params in [] are optional, params in "" should be typed word for word
- <time> uses format hh:mm:ss, <date> uses format MM/DD/YY, <date/time> uses format MM/DD/YY-hh:mm:ss, <hour> is an integer from 0 to 23.
- Example timestamps: 1/1/00-0:30:00, 3/24-5:10, 5/12-4, 3-18:20
- gpercent and staffdist require Vault
Permissions:
- ah.query.player - allows checking of player activity
- ah.query.group - allows checking of group distribution
- ah.admin - includes all of the above plus log cleaning
Contributors:
- Carmeops (IGN) - French localization
Milestones:
- As of August 8, this plugin is on the top 1000 plugins on Metrics!
- This plugin stayed on the top 1000 for at least 1 week April 11-20 2014!
Known Bugs:
The code for group queries is not as developed as player queries and may not work correctly.
Metrics:
This plugin utilizes Hidendra's plugin metrics system, collects information such as:
A unique identifier
The server's version of Java
Whether player authentication is enabled
The version of the server and plugin
The OS version/name and architecture
The core count for the CPU
The number of players online
The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true
Source Code: https://github.com/psychic94/ActivityHistory/
@x_clucky
Well I plan on adding an event interface soon. Perhaps a web app implementing this will be able to do it.
@psychic94
Not anything you have to worry about developing, I'm just going to make a monthly/weekly/forever playtime tracker for users to have on my website. Basically, next to their profile, it will show how long they have played. This would be possible with this plugin (using its MySQL feature), correct?
@xclucky
The SQL feature is in development and not yet ready for release, and when it is it will use whatever time zone the server is set up as. As for for the website, could you elaborate?
:O I've been looking for a plugin like this, I'll have to keep myself updated by subscribing to your RSS. Do you have an EDT on the optional MySQL feature? I am looking forward to this the most, being I want to also use the database as a playtime tracker for my website :)
Wow. I cant believe I missed that. I'll have that fixed by tomorrow.
Thanks for recompiling. Now the plugins is only missing plugin.yml
... 9 more
Sorry it's taking so long, there was a technical error with the last upload.
@kaahne72
Hmm.... Ive never dealt with version difference problems before, so it make take a little while. Expect an update in a few days.
Hi, is it possible to add support for java6? Afaik that's what causing this error:
Every server using debian for example still remains on openjre6 I think.
@psychic94
Disregard this. One of my college courses is database management, so I think developing this would be a good supplement.
Sorry guys, I no longer have time to manage this plugin due to college. If you would like to take over the project, just pm me.
@Makan747
Sorry I took so long to reply. I've been sick lately. I'll look into this and see what I can do.
When i type /ahplayer or /ahplayer makan747 i get "Unkown command. Type "Help" fpr help."
@Jns20
When using the command you have to specify some parameter. There currently is no support for giving just the name. I will fix this in the next update.
EDIT: Solved!
I just installed this for the first time (so I used the full zip) but it doesn't seem to be logging anything.
I assume its supposed to be logging everyone?
I do have Vault and I defined several groups in the config for it to log, but it doesn't seem to log those either.
I just restarted the server a few minutes ago and still no luck.
Update: Scratch what I said before. It does seem to be logging users now, but when I /ahplayer <playername> for someone who has a log, it just returns with: /ahplayer [player] ([date/time] (to [date/time])) (at [hour]) (I assume that is not what it is supposed to say)
If I try to /ahplayer <playername> for someone who doesn't have a log, it comes back with (obviously): Could not find the log file.
There may not be an update this week as I am learning the interface for Factions and Essentials and designing an implementation for ignore AFK players with Essentials and autokicking players from factions based on activity percent instead of/in addition to by last login.
@psychic94 It works fine if you already have the folder set up, but I guess I should've tested if you dont have it. It's to late in the day to code autocreation of the folders, so I'll just upload a zip for now.
@fungreenfox Hmm thats odd. Ill look into it.
Does it work at all? I get a lot of errors after install and query. It doesn't create a folder with config.