public static void rejectinvite(ConsoleSystem.Arg arg)
    {
        BasePlayer basePlayer = arg.Player();

        if (basePlayer == null)
        {
            return;
        }
        if (basePlayer.currentTeam != 0)
        {
            return;
        }
        ulong num = arg.GetULong(0, (ulong)0);

        RelationshipManager.PlayerTeam playerTeam = RelationshipManager.Instance.FindTeam(num);
        if (playerTeam == null)
        {
            basePlayer.ClearPendingInvite();
            return;
        }
        if (Interface.CallHook("OnTeamRejectInvite", basePlayer, playerTeam) != null)
        {
            return;
        }
        playerTeam.RejectInvite(basePlayer);
    }
    public static void rejectinvite(ConsoleSystem.Arg arg)
    {
        BasePlayer player = arg.Player();

        if (Object.op_Equality((Object)player, (Object)null) || player.currentTeam != 0UL)
        {
            return;
        }
        RelationshipManager.PlayerTeam team = RelationshipManager.Instance.FindTeam(arg.GetULong(0, 0UL));
        if (team == null)
        {
            player.ClearPendingInvite();
        }
        else
        {
            if (Interface.CallHook("OnTeamRejectInvite", (object)player, (object)team) != null)
            {
                return;
            }
            team.RejectInvite(player);
        }
    }