Added rank privilege checking into PlayerHasPrivilege()