Massive rewrite. Now has a new Bukkit event-based API system.