refactoring and removing more bukkit dependent classes
make it compile with java 1.6