Updated for the new bukkit api.