MLB player facing gun charge appears in court