Added PlayerCommandTabCompleteEvent, minor refractoring.