fix for command prevention routine (used by territoryEnemyDenyCommands and such) not properly covering commands with uppercase letters in them
Fix for potential NPE in CraftBukkit caused by LWC location world returning null
update default GSON jar version to 2.1
(Olof) Using latest CAPI for integration
Compatibility with upcoming CB 1.1-R5 and above: updated Enderman block monitors to use EntityChangeBlockEvent, removed register event convenience methods from MPlugin (no longer working or needed)

Updated Bukkit lib to newest dev version
Updated SpoutAPI, handled deprecated Spout AppearanceManager code, updated Spout event listener to new Bukkit event system
Clean up integration methods with other plugins a bit
(Olof) (backported from 1.7 branch) New setting "homesTeleportCommandEssentialsIntegration" (default true) which, if enabled, will integrate /f home teleports with the Essentials plugin's teleport handler if Essentials is on the server. This provides teleport cooldown and/or delay to /f home based on your Essentials configuration.
Hopeful fix for rare errors where location world somehow changes in the middle of trying to show a smoke effect
Damage protection is now extended to being set on fire (by flaming arrows, for instance) and receiving harmful splash potion effects. Beneficial splash potion effects are unaffected, and prevention of harmful splash potion effects is handled on a player-by-player basis, so you can still be harmed if you're not careful where you throw them.
New setting factionMemberLimit (default 0, no limit), which will prevent players from joining any faction that has reached this membership limit.
UNTESTED: fix for chatspy not working with CAPI chat integration

If it's still not working correctly, let me know
Added possibility to specify a player in the /f join command (/f join <faction> [player=you]), to make a player other than yourself join the specified faction. The new permission factions.join.others (added to factions.kit.mod and above) is required to be able to specify a different player.
Note that the player cannot currently already be in another faction; if they are, you'll need to /f kick them first. Also note that if the faction isn't open (with no invitation required), the player isn't invited, and you don't have the factions.join.any permission or have admin bypass mode on, the attempt will also fail.

Also, added new log method which accepts arguments (like the msg method) and cleaned up /f permanent text a little.
(Olof) Added command logging for commands used by players
"autoLeaveAfterDaysOfInactivity" routine now runs only once every few minutes instead of running every time a player logs in. New setting "autoLeaveRoutineRunsEveryXMinutes" (default 5 minutes) to determine just how often the routine is run.
The routine is also slightly more careful about how it calculates how long a player has been offline.
fix for faction limit error message
Release 1.6.6

Also I'm sneaking in another minor fix for the coloring of the faction limit error message
Final attempt to fix rare non-fatal NPE from Player ending up returning null while updating Spout appearance features
Fix for fatal error at startup in CraftBukkit 1.1-R5 and above

Updated Bukkit lib
Release 1.6.6b for compatibility with CB 1.1-R5 and above