public ServerLoginResponsePacket(ConnectionInitializationResponseCode responseCode, ClientPrivilegeType privilegeType, bool isClientFlagged)
        {
            if (!Enum.IsDefined(typeof(ConnectionInitializationResponseCode), responseCode))
            {
                throw new InvalidEnumArgumentException(nameof(responseCode), (int)responseCode, typeof(ConnectionInitializationResponseCode));
            }
            if (!Enum.IsDefined(typeof(ClientPrivilegeType), privilegeType))
            {
                throw new InvalidEnumArgumentException(nameof(privilegeType), (int)privilegeType, typeof(ClientPrivilegeType));
            }

            ResponseCode         = responseCode;
            PrivilegeType        = privilegeType;
            this.isClientFlagged = isClientFlagged;
        }
 /// <summary>
 /// Indicates if the client privilege type
 /// is elevated beyond a regular player.
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public static bool isPrivilegeElevated(this ClientPrivilegeType type)
 {
     return(type >= ClientPrivilegeType.PlayerModerator);
 }