/iPlayed

Plugin for Bukkit that tracks players' time spent online.

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

/**
  * iPlayed - A Bukkit playtime plugin for Minecraft
  * Copyright (C) 2011 Melvin "inspireVeiN" Chien
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
  * 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */

Purpose: Track amount of time players spend online and last activity time.

Features:
-/played - check your own playtime
-/played <name> - check another player's playtime
-Sends days, hours, and minutes spent online and time of last activity
-Players' names are not case sensitive
-File saves occur when a player quits
-Ops can add playtime to players in game

Planned Features (in order of priority):
-add configurable file to change colours and prefix
-promote users to next rank after certain amount of time
-use MySQL

Known Bugs:

Changelog:
September 19, 2011
0.81 - Player's current playtime is reset when they are kicked
September 3, 2011
0.8 - Complete code rewrite
    - Afk timer removed
    - InspireTime class removed
    - Using Jova-Time
    - Using Nijikokun's Mini DB
August 8, 2011
0.7 - Renamed plugin from InspirePlayed to iPlayed
July 1, 2011
0.6 - Added afk timer, set to 15 minutes
    - Fixed saving data loss bug due to not clearing hashmap
    - Added automatic backups of data file when plugin is disabled
June 30, 2011
0.5 - Added load command
    - Added save command
    - Added version command
    - Removed code for converting old data files
June 23, 2011
0.45 - Fixed user duplication bug due to name capitalization
     - Fixed latest activity bug due to null values from old data file
June 21, 2011
0.4 - Cleaned up code, added new InspireTime class
    - Added time of last activity
    - Added colored text
    - Sends back original name of user
    - Added version in first line of data file
    - Will automatically convert old data files to new format
May 25, 2011
0.3 - Checking playtime of an offline player will no longer update their time incorrectly
    - Changed output file into a user-editable text file
May 23, 2011
0.2 - Player's name not case-sensitive anymore, saves data file on player logout and on /played
May 21, 2011
0.1 - Initial